dirtyType{String}
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:
-
createdThe record has been created by the client and not yet saved to the adapter. -
updatedThe record has been updated by the client and not yet saved to the adapter. -
deletedThe record has been deleted by the client and not yet saved to the adapter.
Example
var record = store.createRecord('model');
record.get('dirtyType'); // 'created'
Please login to continue.