mardi 16 février 2016

EmberJS, DS.Model, how to know if a particular attribute is dirty?

I can monitor the property hasDirtyAttributes to know if any attribute is dirty.

How can I monitor if a specific attribute is dirty?

Something like:

attributeOneNeedSave: Ember.computed('attributeOne', function() {
  return this.get('dirtyAttributes.attributeOne');
})




Aucun commentaire:

Enregistrer un commentaire