Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS Error: Unknown provider: $animateProvider <- $animate

Uncaught Error: [$injector:unpr] Unknown provider: $animateProvider <- $animate

I am trying to create a carousel using Angular-ui as given in this link. http://angular-ui.github.io/bootstrap/

But, I get that error.

Details: I am using a .min angular script file. The index.html has the same code as given in the link. According to this post Error: Unknown provider: employeesProvider <- employees, I took the ng-controller from the html and I'm binding the controller in the controller.js as given in the angular-seed app.

Also, http://docs.angularjs.org/error/$injector:unpr?p0=$animateProvider%20%3C-%20$animate did not help me.

What could be the reason?

like image 449
vplusplus Avatar asked Mar 22 '23 17:03

vplusplus


1 Answers

I was getting Unknown Provider issues as well when I introduced ngAnimate into a project with an older release of Angular. Your best bet is to use the version of ngAnimate equal to the current version of Angular in your project. They seem to be released in tandem.

like image 181
Matt Jensen Avatar answered Apr 01 '23 21:04

Matt Jensen