Mujtaba Ahmed
Mujtaba Ahmed

Reputation: 101

Angularjs with material design Failed to instantiate module ngMaterial

I have installed angularjs and materialjs using bower.

bower install angular-material

And injected 'ngMaterial' into my app but getting this error.

Uncaught Error: [$injector:modulerr] Failed to instantiate module demoApp due to:
Error: [$injector:modulerr] Failed to instantiate module ngMaterial due to:
Error: [$injector:modulerr] Failed to instantiate module material.core due to:
Error: [$injector:unpr] Unknown provider: $mdUtilProvider

Any Help.

Upvotes: 7

Views: 7822

Answers (1)

amoyano
amoyano

Reputation: 302

I had the same problem until I changed my angular version from 1.2.28 to 1.3.0 in my bower.json file.

See if your angular version is less than 1.3.0, or if you have a dependency which forces angular to a version less than that number.

Hope it helps.

Ps.: I'm using angular-material version 0.7.1

Upvotes: 8

Related Questions