Closed victorjussiani closed 10 years ago
It is not clear what you are trying to do here as I see 2 AuthenticationModule.js?
Can you setup a plunker so I can take a further look?
Sorry for the confusion, here is the plunk http://plnkr.co/edit/MQlsAfgRKPETTXVlXxdc . The error occurs when you try to access the url /login.
This is the tricky part of using 2 module system. What you are trying to do is creating a separate angular module and then performing lazy loading there. There are 2 options here:
AuthenticationController
can be easily be lazy loaded by your app
If you opt for 2, remember that your Auth package should not be lazy loaded. Here is example of opt 2: http://plnkr.co/edit/fWgMywqT7s4oQw4yZLg4
Note that I cleaned up a bit your main.js
as there is really no reason you need to load angular
in your packages. It should simply be setup as dependency to angularAMD
.
Good night, you could help me with the following problem?
I am creating my application divided into modules, these modules are determined by functionality. So I have a file that defines the module and routes that he possesses, and other files that are the controllers, services, etc.
However when I try to load the controllers is giving these error:
The scenario is as follows:
app.js
AuthenticationModule.js
AuthenticationController.js