I have a rails app which uses angular. It is also using ui router for routing. I first had all js codes in app.js and it works well. But I think its very hard to maintain in the long run. So I moved the controllers code to its own folder and it stopped working. Now My app cant find my controller and getting this error
Uncaught Error: [$injector:modulerr] Failed to instantiate module appname due to: Error: [$injector:modulerr] Failed to instantiate module homeCtrl due to:
I have created a test app to demonstrate this.. https://bitbucket.org/flyingboy007/testapp
Could some one tell me whats wrong here?
homeCtrldependency formapp.module.js, because we don't need that there.