I think I'm missing something basic with new MVC enyo. I can successfully create Models/Collections and instantiate them from views. I can cause the collection to load (fetchAndReplace) and I see the updated data from the view.
However, I can't figure out how to get the Model/Collection to report to View that it has been changed. What I've been doing is one of three things, either 1) send in a success function from View into the
fetchAndReplace; 2) create an event in the Model/Collection like "onDataChange" and send in the function from the View; 3) creating a binding in View from
.collectionStatus and then using a function called
collectionStatusChanged in the View.
All the above seem a bit "hacky" - is there an easier way that I'm missing?
0 · ·