Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 769
Mujtaba Ahmed Avatar asked Feb 18 '15 15:02

Mujtaba Ahmed


1 Answers

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

like image 98
amoyano Avatar answered Nov 14 '22 21:11

amoyano