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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s