DS.Model#isSaving

isSaving{Boolean}

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

If this property is true the record is in the saving state. A record enters the saving state when save is called, but the adapter has not yet acknowledged that the changes have been persisted to the backend.

Example

var record = store.createRecord('model');
record.get('isSaving'); // false
var promise = record.save();
record.get('isSaving'); // true
promise.then(function() {
  record.get('isSaving'); // false
});
doc_EmberJs
2016-11-30 16:50:11
Comments
Leave a Comment

Please login to continue.