I had a similar need so I created an open source package called angularAMD that make it slightly easier to do lazy loading with AngularJS. Here is the demo website with link to github repo:
http://marcoslin.github.io/angularAMD/ Hope this helps. On Tuesday, 27 May 2014 03:14:47 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.
