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:
-
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'
Please login to continue.