ocombe / ocLazyLoad

Lazy load modules & components in AngularJS
https://oclazyload.readme.io
MIT License
2.63k stars 510 forks source link

Config blocks for dependencies of lazy loaded modules are triggered in the wrong order? #390

Open lilstargazer opened 7 years ago

lilstargazer commented 7 years ago

Plunkr: http://plnkr.co/edit/calGSdZMXDiNwNipstYO?p=preview

Problem: If you try to click the link for lazy.foo, it will not work because the lazy.foo state is registered before the parent state lazy.

If _lazyModule.js was not lazy loaded, it would correctly register the states where lazy was registered before lazy.foo. I've tried using the global configuration of serie, but it doesn't appear it applies to the running of the config blocks.

brad-sobie commented 7 years ago

+1