The animation class should be put on the same element as the ngRepeat
directive:
<tr ng-repeat="user in $data" class="animate">
题
Check out this plnkr where I'm trying to combine both ng-animate and ng-table:
http://plnkr.co/edit/EfZF5oWb9qzGvOIbAhtX?p=preview
As you can see, I have injected both directives into the scope, and I have the CSS for the animations in style.css, but for some reason there isn't any animations happening... anyone know what I'm doing wrong here? (There isn't any errors in the console currently) Any help would be really appreciated!
Thanks,
Mike
解决方案
The animation class should be put on the same element as the ngRepeat
directive:
<tr ng-repeat="user in $data" class="animate">