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.
Digest ng-repeat after manual DOM manipulation causes disorganized list #7041
Closed
Description
I'm using AngularJS 1.2.16.
- I have made 3 ng-repeat wrapped into each other based on $scope object
- With a button I move one of the last ng-repeat list element after the last element in jQuery, not within a Digest
- With another button I reverse all $scope elements in last ng-repeat list then Digest is fired.
After that, I expecting to have all the initial elements in reverse order in my view. But I have a disorganized elements list.
Here is a demo to try: http://jsfiddle.net/xavierboubert/4AvQG/8/
Look at the list of Items, click "Modif DOM please" then click "Reverse please".
(In a real project, I'm using jQuery UI with a customized sortable with multiple elements)