Sails JS – Production mode Error: [$injector:unpr]

Feel free to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

I just encountered another error and in production mode that angular JS controllers were not being loaded properly and I was getting the error like:

Error: [$injector:unpr] ...

To fix this, just change the declaration of your AngularJS controllers from

io

And it works like a charm.

Please comment if this solution solved your problem.

Feel free to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone
  • tailot

    Thanks!

    • http://qasimzeeshan.com Qasim Zeeshan

      My pleasure and thanks for reading