angularjsng-view

AngularJS - Multiple ng-view in single template


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


Solution

  • 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.