ngAnimate angular for an element

33 views Asked by At

i'm trying to use some animations using ngAnimate. In my view i use some ngClass/ngShow etc.. and with ngAnimate can't "live together". ngAnimate breaks the other animations. So, according to the official guide of angular, i tried to disable globally the animations in this way in my controller:

$animate.enabled(false);

but some components that i use needs of ngAnimate! So i tried to set the animations for certain elements from the controller in this way:

$animate.enabled(true, "#my-element-id");

but it's not working. Am i wrong?

0

There are 0 answers