ng-1.x-async-hack icon indicating copy to clipboard operation
ng-1.x-async-hack copied to clipboard

Angular v1.x hacked to lazy load code

This is an example of hacking Angular v1.x to lazy load code that a bunch of people have asked me for.

The main.js is loaded at the beginning. Later, when navigating to /list route, additional module lazy-list.js is loaded. It should be fairly simple to make this work with RequireJS.

In Angular v2, integration with a module loader (such as RequireJS) and lazy loading will be simple.