AngularJS - Multiple ng-view in single template

Jayram picture Jayram · Jul 9, 2013 · Viewed 147k times · Source

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

Answer

pasine picture pasine · Jul 9, 2013

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.