I encountered a problem recently:
I have such a requirement. There are many templates in a main controller, which are called by uirouter based on ID. Each ID corresponds to a controller. Now I need to process each template separately. There is a {{pageTitle}} for each page. Display different values and assign the corresponding value to the title. How to do this?
If you use uirouter control, you can handle it in the onChangeSuccess listening event
The easiest way is to separate the template into an html and embed it with an iframe