ember.js how to automatically detect delta of models

255 views Asked by At

I am in early stages of learning Ember.js. Particularly I am interested if it can tell me the 'deltas' that have been applied to the Model due to the user modifications/additions via the UI

I need to allow users to change values of checkboxes, lists, edit boxes and the Data grid (EmberTable ) -- and then capture those changes in a uniform widget-independent fashion (incrementally every 5-6 seconds) and then send them back to the backend or the the in-browser database (taffyDb) if browser is offline.

For example Delta of the Model means: My model has a list of 5 elements that's represented in the view as a List. A user clicks an 'add' button to add another entry to the list. That change Ember propagates back to the Model. So now the model contains the list of 6. What I am looking for is the automatic framework function call (or something) that let's me know exactly the value that was added by the user (or changed in case I had a text box)

I am looking for pointers to ember documentation/samples that at least do something similar -- to see how much support this framework provides vs how much I would have to build myself

0

There are 0 answers