This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-animate-children does not always work with class-based animations #8092
Comments
These are all clear examples. Is the plunkr link not properly working? I can try to setup a few examples if you don't have them already. |
Sorry, I had the wrong plnkr link. Now it should work: http://plnkr.co/edit/CE4nEBU1e2jIhwUmUzdK?p=preview The two buttons correspond to a) and b) |
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Oct 8, 2014
…ngAnimateChildren is enabled Prior to this fix, $animate.leave placed a disabled animation on the element which prevented ngAnimateChildren from properly working. This patch now addresses that issue. Closes angular#8092
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Oct 8, 2014
…ngAnimateChildren is enabled Prior to this fix, $animate.leave placed a disabled animation on the element which prevented ngAnimateChildren from properly working. This patch now addresses that issue. Closes angular#8092
This is now fixed in #9491 |
bullgare
pushed a commit
to bullgare/angular.js
that referenced
this issue
Oct 9, 2014
…ngAnimateChildren is enabled Prior to this fix, $animate.leave placed a disabled animation on the element which prevented ngAnimateChildren from properly working. This patch now addresses that issue. Closes angular#8092 Closes angular#9491
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I played around with ng-animate-children and I think I found a few bugs.
a) when I use ng-class inside ng-if, the child animation is not called when the element leaves
b) when I use $animate.enter / leave on the parent element, a child element with ng-class does not get animated at all, and when you execute enter while leave still runs, enter does not work. (click the move animation button quickly while executes leave). Sometimes also ng-animate and slide-add classes get stuck on the element.
Both animations use the save $scope variable.
I set up a plunker here:
http://plnkr.co/edit/tpl:FrTqqTNoY8BEfHs9bB0f?p=previewhttp://plnkr.co/edit/CE4nEBU1e2jIhwUmUzdK?p=preview
I also tested case b) with $animate.addClass instead of ng-class, which also didn't work Ideally this should also work.
@matsko Can you please have a look? Thanks!
The text was updated successfully, but these errors were encountered: