My animation with ng-repeat does not seem to work . Here is the plunkr
http://plnkr.co/edit/kYtzM9d0rzGmrniybz9c?p=preview
Any inputs.
My animation with ng-repeat does not seem to work . Here is the plunkr
http://plnkr.co/edit/kYtzM9d0rzGmrniybz9c?p=preview
Any inputs.
1. You have registered two modules:
And:
Remove
ng-app
from the html tag.2. You need to load
angular-animate.js
3. As you are moving the elements within the array, it's neither
enter
orleave
you should use, but insteadmove
:.ng-move {
4. You are using the
ng-animate
directive (ng-animate="'animate'"
) which is deprecated since 1.2. You are also passing it a class that does not exist.This would work:
But I would recommend giving it a specific class to be able to specify which ng-repeat uses which animation:
And:
Demo: http://plnkr.co/edit/fiMORm5ZFLejV1aOUrbR?p=preview