md-virtual-repeat can not handle data set change on `md-on-demand` mode.
In 0.11.0-rc1, the new "on demand" mode works great for non-changing dynamic loading.
However, if something makes the original data set to change, like a filter applied, there is currently no way to notify the directive that the data has changed and it should refresh the whole list.
Is an Android style notifyDataSetChanged() possible?
+1
I've had some results by rebuilding the page array after filters have changed. in most cases this seems to update the list.
In my case there's a dataset that gets items prepended and removed at a relatively fast pace. In my case a 'pagination' with a linked-list-like behavior rather than index makes more sense. Maybe there could be some alternative virtual-repeat model that looks like:
{
getItemAfter(item, offset), // call with null to get the first item
getItemBefore(item, offset) // call with null to get the last item
}
+1
Mirroring the comment by @digital-synapse, I verified that you can trigger an update by replacing the model reference. I also tested that changing the values returned from getItemAtIndex also results in appropriate updates to the displayed data.
Can you provide a test case of what isn't working? Thanks.
+1
+1