Closed andidev closed 8 years ago
That should work; I don't see why it doesn't. Are you sure the view1 module is successfully registering the controller?
Error: [ng:areq] Argument 'view1Controller' is not a function, got undefined This line with 'undefined' implies that view1Controller is not registered.
Thanks, I'll have to have to debug this then to have a closer look.
You are right. The module was not loaded. My requirejs skills are lacking. Thank you for your time.
I'm getting
The problem is that I create my controller with a module and therefore I can not return it which means that 'lazyController' will be undefined in the State Factory above.
UI Router state supports setting controller by controller name with the controller field. How come this does not work when using a State Factory and Future States?