After I updated my angular 2 project from RC4 to 2.0.1 I'm having a problem with a ngFor looping on an array of objects (It was working fine on RC4)
the list of elements is not being updated properly on the DOM, and now displayed unsorted .
the ngFor uses a pipe to slice the array (using the start and stop bounds).
the section displayed is updated each time we move the two bounds (start/ stop).
Steps to reproduce the bug /issue:
- Move the start / stop bounds through the middle
- Then move the draggable bar to the left / right. You'll see the elements displayed are being updated.
- At some point if you move to the left you'll see the elements being unsorted/mixed.
- I added on console log the id index from ngLoop. so you can see its unsorted when the problem occurs
I tried several changes on code, but nothing worked:
- using a copy on the object
- using an array with the keys...
thank you for your help