We are faced with the task of developing a multi-page application using Angular. The pages we are working on have distinct layouts and functionalities, like the ones shown in these images:
https://i.sstatic.net/NASiQ.png https://i.sstatic.net/yLS8s.png
Our approach involves assigning specific Angular controllers to each section of the page, with templates being added through the ng-include directive. For example, page 1 (route ==> '/') will consist of four different sections, each controlled by a separate controller.
While this structure works well for a single-page layout, we are unsure how to define routes within this context.
1) One option is to use nested controllers, where all other controllers are under a main page1Controller for page 1. Is this a good design choice?
or
2) Another option is to have one controller per page, simplifying routing and defining directives for each section of the page. What would be the best approach in this case?