DS.Model#dirtyType

dirtyType{String}

Defined in addon/-private/system/model/model.js:222

If the record is in the dirty state this property will report what kind of change has caused it to move into the dirty state. Possible values are:

  • created The record has been created by the client and not yet saved to the adapter.
  • updated The record has been updated by the client and not yet saved to the adapter.
  • deleted The record has been deleted by the client and not yet saved to the adapter.

Example

var record = store.createRecord('model');
record.get('dirtyType'); // 'created'
doc_EmberJs
2016-11-30 16:50:08
Comments
Leave a Comment

Please login to continue.