I am trying to create an add\remove animation in an ng-repeat (with css transitions). For some reason the fade out effect always happens at the bottom of the list and not on the item you choose to delete (for example try deleting the first item , the effect shows at the bottom) . Here's a plunkr http://plnkr.co/edit/XdGHKhf5z5BQMaYk1Naz?p=preview
Any thoughts ?
If you remove
track by $index
, then it should be all right. just:
<div ng-repeat="item in items" class="repeat-item">
Use a simple ng-repeat: "item in items"
in this way works fine.
Check this plunker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With