An AngularJS + Ui-Router + RequireJS cookie cutter: for creating web-applications that fetches controllers, modules and CSS, after Angular has been bootstrapped, resolving their dependencies as the route changes.
Read more about the lazy-loading software design pattern on Wikipedia.
All files prefixed with ng- contain core Angular code.
The Definition of a Core Module is two-fold:
- A Module that the Angular App depends upon to be bootstrapped. A Core Module can be a Directive, a Controller or even a Configuration file.
- A Module that is used in every/many view(s) of the application. Eg: an API module that handles communication between the server and the client.
- Lazy Loading in AngularJS - Ifeanyi Isitor
- angularAMD - Marcoslin
- Dynamically Loading Controllers & Views With AngularJS & RequireJS - Dan Wahlin
- Dynamically Loading Directives in AngularJS the Easy Way - Gilly Barr
- Instant Dependency Management with RequireJs - Book by Greg Franko
- Pro AngularJS - Book by Adam Freeman