You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
I reduced my code to the smallest version with the error.
The point is, I create a table, the angular way, with an empty array for the Table rows.
After that, I fetch some data, and add it to that same array (with angular.copy)
Even though they are correctly added to the table itself, if I click on a column title to sort it, or try to filter by typing in the input box, the table deletes all the rows.
The point is we where using $scope to save our different data & configurations, and I believe that by using "THIS" as the main variable, yo manage to keep the angular $digest working correctly.
I cant really say for sure, i'm not that much of an angular dev.
would love for @l-lin to enlighten us on this 😄
I reduced my code to the smallest version with the error.
The point is, I create a table, the angular way, with an empty array for the Table rows.
After that, I fetch some data, and add it to that same array (with angular.copy)
Even though they are correctly added to the table itself, if I click on a column title to sort it, or try to filter by typing in the input box, the table deletes all the rows.
I've created a codepen for this issue
http://codepen.io/forres/pen/WvbwPq?editors=101
The text was updated successfully, but these errors were encountered: