-
Notifications
You must be signed in to change notification settings - Fork 510
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
Loading controller with no success #73
Comments
Hi, the name should not be "loginCtrl" but the name of the module that the loginCtrl belongs to (the module name for App in your case): return $ocLazyLoad.load({
name: 'YourModuleName',
files: ['js/dev/controllers/page/loginCtrl.js']
}); |
Works - great thanks |
Nice ! |
Yet it's not working :/ When I added ui-bootstrap with templates I have error:
If I add loginCtrl without LAzyload everything is ok. Here's my my module declaration: var App = angular.module('infirma', ['ngAnimate', 'ui.bootstrap', 'ui.router', 'oc.lazyLoad']); |
ocombe
added a commit
that referenced
this issue
Nov 2, 2014
Fixed in 0.3.9 ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to load App controller:
here is lognCtrl.js source:
All I get i error:
The module "loginCtrl" that you are trying to load does not exist.
How to do it well?
The text was updated successfully, but these errors were encountered: