DS.Model#isLoaded

isLoaded{Boolean}

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

If this property is true the record is in the loaded state. A record enters this state when its data is populated. Most of a record's lifecycle is spent inside substates of the loaded state.

Example

var record = store.createRecord('model');
record.get('isLoaded'); // true

store.findRecord('model', 1).then(function(model) {
  model.get('isLoaded'); // true
});
doc_EmberJs
2016-11-30 16:50:10
Comments
Leave a Comment

Please login to continue.