Lazy load modules & components in AngularJS
LeadingReach changes based on ocombe#225. Made changes in /dist/ocLazyLoad.js, and created a yarn package with yarn pack dist/ocLazyLoad.js
.
The resulting oclazyload-v1.1.0-lr.tgz file was then copied to the apphead repository to be used with yarn
.
Find all the documentation (and more) on https://oclazyload.readme.io
- Dependencies are automatically loaded
- Debugger friendly (no eval code)
- The ability to mix normal boot and load on demand
- Load via the service or the directive
- Use the embedded async loader or use your own (requireJS, ...)
- Load js (angular or not) / css / templates files
- Compatible with AngularJS 1.2.x/1.3.x/1.4.x/1.5.x/1.6.x
I'm looking for contributors to help me maintain the code (I'm gonna switch to Angular 2 soon, and I won't be much more invested in Angular 1 & ocLazyLoad). If you're interested, send me a tweet @OCombe or an email: [email protected] !