I am also creating a large application with a need for dynamic loading of full modules.
I would add these as possible solutions: Full module loading after application bootstrap: https://github.com/ocombe/ocLazyLoad Lazy loading of particular controllers, directives, etc. - http://www.bennadel.com/blog/2554-loading-angularjs-components-with-requirejs-after-application-bootstrap.htm Hope that helps Brian On Tuesday, May 27, 2014 2:47:37 AM UTC-4, Juri Strumpflohner wrote: > > Awesome question, just wanted to post a similar one. We have a similar > need. We're aiming to build a larger application that is based upon > "plugins", meaning that depending on the kind of user a set of (angular) > modules are (lazily) loaded. > > I'm interested as well in the best practices approach of achieving such a > scenario with Angular. What I found so far is this: > > - https://github.com/ifyio/angularjs-lazy-loading-with-requirejs/ > - > https://github.com/ifyio/angularjs-lazy-loading-with-requirejs-optimisation > - https://github.com/matys84pl/angularjs-requirejs-lazy-controllers > > Is this the way to go till Angular has build-in support for lazy loading > of modules?? > > Thx for any help. > > On Tuesday, May 27, 2014 3:14:47 AM UTC+2, RichardAlan wrote: >> >> I have a SPA application. When the index.html loads I load AngularJS and >> all of the javascript my application users will use. This means that even >> the basic users also get the javascript for admin users loaded to their >> PCs. What I would like to do is to load some modules at a later time after >> I have determined if the user is authorized as a basic, editing or admin >> user. >> >> From what I understand lazy loading is something that is planned for a >> future release of AngularJS. >> >> Can anyone give me an update on the status of this. Has anyone been >> suggesting if the lazy loading will be based on an exisiting framework ? >> Also any suggestions on how I could best do lazy loading until AngularJS >> comes up with a solution? >> > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
