Injection Error with Angular JS

Just a quick hint with Angular JS.

I have just got an error like…

Error: [$injector:modulerr] http://errors.angularjs.org…

I was using the minified Angular script, and the error was hard to understand.
To get a human-readable error, just replace the minified script by the full one. That is to say, replace angular.min.js by angular.js in your HTML page. The error message will be easier to understand. During your development, this will save you a lot of time.


About this entry