I am building a large, complex AngularJS application (think ERP system). I am having a hard time deciding when it is appropriate to use ui-view
, ng-include
or a custom directive + templateURL
.
I will give a few concrete examples to give y'all something to work with.
- A navigation menu that is used across all URLs of the application but includes a complex AJAX autosuggest/dropdown search box.
- A simple HTML footer that is the same across all URLs of the application
- The content areas that go in between the header and footer.
- The individual components that are nestled within the content area (such as and "Edit Profile" form, or user dashboard)
- Modal dialogs
What are the best practices?