I have tried to create a service in a separate folder and inject it into controller of custom template named login. This template works fine until I didn't inject service into its controller.But at the moment i injected service into its controller, it didn't work.Gives the following error:
Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:modulerr] Failed to instantiate module myApp.login due to:
Error: [$injector:nomod] Module 'myApp.login' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
This sounds like a general support question. Please, use one of the appropriate support channels for these types of questions.
GitHub issues are reserved for bug reports and feature requests.
I have tried to create a service in a separate folder and inject it into controller of custom template named login. This template works fine until I didn't inject service into its controller.But at the moment i injected service into its controller, it didn't work.Gives the following error:
Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to: Error: [$injector:modulerr] Failed to instantiate module myApp.login due to: Error: [$injector:nomod] Module 'myApp.login' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.