I have several nested ui-views on my page with the appropriate states for setting templates in these views. When I go to the child state, the controller associated with each of its parent states is called. I want to prevent this. For example, if I go into root.question.mcq.menu state, it also calls the controller associated with root.question.mcq state.
How can I prevent this from root.question.mcq.menu only the controller associated with root.question.mcq.menu .
suheb source share