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.
Hello,
when using ng-class animations with ng-repeat directive and also using with orderBy Filter ng-repeat animation overrides the ng-class animation. (className-add never works and className-remove sometimes works). Is this a bug or a normal behaviour?
Yes, this is the normal behaviour since the structural animation takes precedence over the class-based animation. First the move happens, then it waits a digest and ngClass changes (which causes an animation for a microsecond), then the move animation happens. Despite there being no animation setup for the move event (when orderBy does its thing), ngAnimate still thinks there is one since the .row-anim class has a transition property on it.
Unfortunetly there is no easy way to get around this on the same element. You could use ng-animate-children (brand new feature in 1.3) and place ng-class animations on the TD elements:
Hello,
when using ng-class animations with ng-repeat directive and also using with orderBy Filter ng-repeat animation overrides the ng-class animation. (className-add never works and className-remove sometimes works). Is this a bug or a normal behaviour?
Here is the plunker:
http://plnkr.co/edit/29ORioZgazFwSvKn95ks?p=preview
Angular version: 1.2.18 (also tested with latest 1.3 and result is the same)
Thank you
The text was updated successfully, but these errors were encountered: