AngularJS set ng-controller with scope variables

后端 未结 1 788
一向
一向 2021-01-13 15:02

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

相关标签:
1条回答
  • 2021-01-13 15:13

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

    0 讨论(0)
提交回复
热议问题