Problem can't use ngAnimate


When I try to use function in my code like $animate.on, I got this error :
Error: undefined is not a function (evaluating ‘$animate.on’)

I haven’t forget in my code to put the ‘ngAnimate’ dependency but it’s like it doesn’t work.
I read that it can be a version problem between angular.js and angular-animate.js, but I use the ionic.bundle.js witch include both.

Can someone help me ?


No one has the same problem ?


Finally, it’s not about the dependency, it is just the $animate.on function that is not working.
I manage to do what I want with the $animate.addClass(…).then() function.

Hope this will help other people !