Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular 1.3.0.rc0: Removing an item from ng-repeat move its DOM element at the end when animating #8918

@pauldijou

Description

@pauldijou

Using ng-animate with an ng-repeat, when removing an element from the JavaScript array, I would expect the DOM element to stay at the same place it was while animating and then being removed. That's not what happening with the RC0 of Angular 1.3.

It looks like the DOM element is removed immediately and then Angular realizes it needs to animate it, so the element is put back in the DOM but at the end of the list, animated, and then finally removed for good.

I tried removing using different methods (splice and filter) and using stuff like track by or orderBy but nothing worked. Here is a demo showing the problem: http://codepen.io/pauldijou/pen/wevBr

Am I missing something on how to remove an element from a ng-repeat?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions