Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a .config method to allow configuration change in lazy loaded modules #71

Closed
marcoslin opened this issue Jun 17, 2014 · 0 comments
Milestone

Comments

@marcoslin
Copy link
Owner

Packages like ui-router allow runtime change of $stateProvider but it requires caching of $injector during the app.config phase. As angularAMD already does this, exposing this as .config method allow for post bootstrap .config call. Here is a sample implementation of lazy loading of $state from ui-router:

http://bl.ocks.org/marcoslin/b59cfa9a9a44bde04f9f

@marcoslin marcoslin added this to the v0.2.0 milestone Jun 17, 2014
marcoslin pushed a commit that referenced this issue Jun 25, 2014
…ading of packages. Also added support for on

   demand loading of the package created after bootstrap. This closes #14 and closes #24.
2. Allow for loading of module that return a function as controller, thus avoiding passing of `controller` param
   to angularAMD.route when `controllerURL` is passed.  This closes #72
3. angularAMD.config method created.  This closes #71
4. Alternate app created upon bootstrap.  This closes #70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant