I have a template (for a modal popup) and depending on its function, different controllers should be loaded:
相关标签:
Try using ngRoute. With it you can assign different controllers and templates to your root element and switch between them by changing your location.