Animating ng-move in AngularJS ngRepeat is animating the wrong items

后端 未结 2 984
醉话见心
醉话见心 2021-02-14 10:43

I\'m a little flummoxed when it comes to animating ng-move in an ng-repeat. If I move an array item from 3 to 7 for instance, items 4-7 get shifted up and they animate. However

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 11:17

    @tasseKat has an excellent answer, which explains the behavior you observed: https://stackoverflow.com/a/27616435/1652643

    However, his solution is not as simple as you would wish... but so far I haven't found anything better.

提交回复
热议问题