Reputation: 491
I have an array of objects that i display using an "*ngFor" loop, when i call array.sort() changes occurs inside the array and the position/order of the elements changes but angular doesn't detect the changes and doesn't re-fires the "ngFor" loop. how can i update my UI after calling the sort function.
Upvotes: 2
Views: 1925