vendredi 10 avril 2015

How can you observe changes on every item in a model in Ember-cli

I have a model called 'matter_has_user', on a particular page, i will have some number of items of this type. Each of these will be store objects and will have a value called bill_alert which will be connected to a checkbox. So i need to watch all of these checkboxes and when a change occurs, i need to issue a save to the api.


So how can you go about this? Can you set up observers on a certain property for each item of a particular type? How can I set up listeners on each of these checkboxes to fire a specific action?





Aucun commentaire:

Enregistrer un commentaire