7

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.

3
  • 1
    Are you import the angular-material.js script in the respective index.html? Commented Feb 18, 2015 at 16:01
  • yes i have added that in my index.html and also confirmed it. Commented Feb 19, 2015 at 9:42
  • You need to show some example code here. What is in your bower,json? It looks like the answer below is likely correct. If so, please accept it. Commented Mar 7, 2015 at 6:21

1 Answer 1

8

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

Sign up to request clarification or add additional context in comments.

1 Comment

Yep, it is stated in a few places that Angular 1.3.0+ is required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.