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

1
2
3
4
5
6
var record = store.createRecord('model');
record.get('isLoaded'); // true
 
store.findRecord('model', 1).then(function(model) {
  model.get('isLoaded'); // true
});
doc_EmberJs
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.