So I have a view on list of items. And then an element for each item in the list. When I set something to checked, I want the item to go from the "Unchecked" display to the "Checked" display.
The first problem I ran into was that a change to the item in the list doesn't send a change event to the items array observer. So if anyone knows how to make this part happen, I would LOVE to know! I suspect that it's just not the way observers work here.
So the way around getting an update was that I fired an event from the my-item element. So I get the update in my-filtered-list; however, I'm not sure whats the best way to force the HTML template stuff to update.
I think I cheated by simply making a copy of the array and then re-assigned the array to the new value. That difference caused an update. I was hoping to see if there was a better way to force that.
Or -- is there a different way for which I should organize the code? Like for instance, create two lists -- one for checked and one for unchecked -- and then move items between the two as I get updates.
Thanks
--
Adam