Originally created by: jonathanlundstrom
Hello,
Thanks for this great service!
I've just implemented some nice CSS animations using the classes provided when you're using ngAnimate, but I'm experiencing some issues when it comes to delaying the close method.
For some reason, both ng-leave and ng-leave-active appends to the element at the exact time of deletion, which means that all my CSS rules are not applied when I need it to close.
$scope.close = function(){
close(null, 2000);
};
The timeout is very long, but it's just for debug. But in my tests, 2 seconds after pressing the close button, the classes are applied, but as the element is deleted at that point, I never get the chance to view them.
How can this be?
Thanks,
Jonathan