Angularjs V1.2.1 - NG-重复动画 - 动画类不会被删除 [英] Angularjs v1.2.1 - ng-repeat animation - animation classes are not removed

查看:144
本文介绍了Angularjs V1.2.1 - NG-重复动画 - 动画类不会被删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写它显示元素列表的指令。列表后改变旧表移动到左侧其次是新的。为了实现这一行为使用 NG-重复指令和CSS3过渡。我注意到,动画类( NG-NG动画进入NG-动画启动NG-动画主动NG-进入活性的)动画结束和NG- ceated旧节点后,不会beeing删除重复循环也不会被删除。

I wrote a directive which displays a list of elements. After list change the old list moves to the left followed by the new one. To achieve this behavior use ng-repeat directive and css3 transitions. I noticed that animations classes(ng-animate ng-enter ng-animate-start ng-animate-active ng-enter-active) are not beeing removed after animation end and the old node ceated by ng-repeat loop is also not removed.

实例plunker: http://plnkr.co/edit/gqRIIUJF55NNvlt9lqMz?p = preVIEW

Example in plunker: http://plnkr.co/edit/gqRIIUJF55NNvlt9lqMz?p=preview

火狐出现该问题即可。在Chrome浏览器,一切都很好。

The problem occurs in firefox. Under chrome everything is fine.

如果你告诉我,我做错了,或者如果它是一个角度的问题,我将不胜感激。

I would be grateful if you tell me what I'm doing wrong, or if it is a angular issue.

推荐答案

这是因为NG-动画/ NG-动画启动...因为angularjs V1.2.0被取出,让你不需要使用它们,检查文档或本的例如,通过凯文 - smets

That's because the ng-animate/ng-animate-start... are removed since angularjs v1.2.0 so you don't need to use them, check the docs or this example by kevin-smets.

这篇关于Angularjs V1.2.1 - NG-重复动画 - 动画类不会被删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆