angular / angular-seed

Seed project for angular apps.
http://angularjs.org/
MIT License
13.04k stars 6.95k forks source link

Not able to inject service in controller #434

Closed divyachawla28 closed 6 years ago

divyachawla28 commented 6 years ago

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.

gkalpak commented 6 years ago

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.

Thx!