5
什麼是知道何時從遠程存儲中檢索實體的最佳方式是什麼?Ember-Data如何知道實體何時被提取
我需要調用來檢索數據,但我需要從一個獲取的ember-data對象中獲取一些值。
目前我正在使用這種方法,但我確信有更好的方法。
contactLoaded: function(){
if(!this.getPath('contact.isLoaded')){
return;
}
//make call
}.observes('App.contact.isLoaded')