dag*_*da1 5 ember.js ember-data
了解何时从ember-data中的远程存储中检索实体的最佳方法是什么?
我需要调用来检索数据,但我需要从获取的ember-data对象中获取一些值.
目前我正在使用这种方法,但我相信有更好的方法.
contactLoaded: function(){
if(!this.getPath('contact.isLoaded')){
return;
}
//make call
}.observes('App.contact.isLoaded')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
654 次 |
| 最近记录: |