Skip to content

Question: can I use $ocLazyLoad to load supplementary files to module that is already loaded? #41

Description

@mr-moon

What i'm looking for is to be able to lazy-load everything. After following the readme and examples, i've ended up with this skel: http://plnkr.co/edit/5XOS1jAwJsdGHzlaJBNA?p=preview

However, when I try to lazy-load only controller, to already-loaded module, I hit the module reinitialisation error, basically state reinitialisation error. In the logs you see that config is executed twice. Error fades as soon as I remove loadedModules: ['app'], line from the app.js file.

I'm still uncertain if I understand the purpose of the name property when calling '$ocLazyLoad.load()` method. What is it meant to be doing?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions