ng-animate-children does not always work with class-based animations #8092
Description
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=preview
http://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!