-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Load controller without app #102
Comments
in my opinion if module ( |
Hi, if you use define then you probably use bootstrap to start your app. You need to let the app know what the name of your main module is. From the docs: loadedModules: If you use angular.bootstrap(...) to launch your application, you need to define the main app module as a loaded module. angular.bootstrap(document.body, ['test']); $ocLazyLoadProvider.config({
loadedModules: ['test']
}); |
i define that module in loaded modules - not working $ocLazyLoadProvider.config({
loadedModules: ['app.layout', 'app.auth'],
jsLoader: requirejs,
debug: true
}); |
Hmm that weird, is your app available somewhere so that I could check it out ? Or can you make me a plunkr ? |
Check 0.5.2 I think that it should fix your bug :) |
I have app and controller in different files, app loaded before app started, controller is a depency.
app code
ctrl code
and when oclazyload require ctrl and inject him to app he reloading app (app already loaded) and angular has a error "State 'login'' is already defined"
i tested with params
and add app.auth to
loadedModules
problem not solved
The text was updated successfully, but these errors were encountered: