AngularJS - Multiple ng-view in single template

后端 未结 6 1790
我寻月下人不归
我寻月下人不归 2020-11-29 17:38

I am building a dynamic web app by using AngularJS. Is it possible to have multiple ng-view on a single template?

6条回答
  •  不知归路
    2020-11-29 18:17

    You can have just one ng-view.

    You can change its content in several ways: ng-include, ng-switch or mapping different controllers and templates through the routeProvider.

提交回复
热议问题