Skip to content Skip to sidebar Skip to footer

Angularjs Set Ng-controller With Scope Variables

I have a template (for a modal popup) and depending on its function, different controllers should be loaded:
Cont

Solution 1:

Try using ngRoute. With it you can assign different controllers and templates to your root element and switch between them by changing your location.


Post a Comment for "Angularjs Set Ng-controller With Scope Variables"