You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I think the animating of ngClass doesn't make sense. With 1.2.0-rc1, adding or removing a class works in a completely non-intuitive manner. Before it was easy to use class adding and removal to perform simple CSS-based animations: add a class, handle the CSS changes in the CSS. No problem.
Now, however, ngAnimate ends up waiting to add the new class until the animation has run, then applies the new class, then the actual animation happens. As an example, assume you had this:
Previously, the color would animate immediately upon setting fooEnabled to true. Now, there's a 5 second pause, then the animation occurs.
As a workaround, I've found that you can set the class on a parent object, and only have the transition on a child, but this is really impractical.
I think there either needs to be a way to prevent ngClass from animating or disable animations on ngClass altogether. It really doesn't make sense to add animations to ngClass, though.