Hey All, I'd love some help if you guys can. I am attempting to use smart table on a page that gets its data from db/api calls via services. I have a search bar filter, and select boxes for 4 other attributes. Using the st-table and st-safe-src onload the table shows nothing. However when I filter using one of the select boxes that has a boolean as its value the relevant data shows up. Any other case the data does not show up.
Have any of you encountered something like this?
Hi could anyone help me with this issue
I'm having same problem as @Muthukumars1994 , my code already is on stackoverflow: https://stackoverflow.com/questions/44375780/using-angular-track-by-index-with-pagination-filtering-and-sorting-not-work
Someone know why search are not working ?
@lorenzofox3 : We are currently using smart-table (yet to migrate to angular 4) and we are having some update issues related to the st-safe-src attribute.
From the code I see that the intial implementation used a watchCollection, but this was changed to a 3 different watches: array, array.length & array reference. This works when adding/removing elements in a single step/action. However this breaks when adding/removing the same number of elements (for example replacing an element).
So I was wondering why the change was done to not use watchCollection anymore (cpu cycles?)
Our current possible solution would be (without touching smart-table):
a) use angular.copy to solve the replace scenario.
b) use angular.deepCopy on the first element to change its reference
Of course it would be better if the table would use watchCollection, but since it used to have this, their might have been a valid reason for it to have been removed :)