Javascript EmberJS-基于异步关系计算
如何使用computed监视异步加载的关系 在下面的示例中,我希望父标题一加载到存储中就会显示出来Javascript EmberJS-基于异步关系计算,javascript,ember.js,ember-data,relationship,Javascript,Ember.js,Ember Data,Relationship,如何使用computed监视异步加载的关系 在下面的示例中,我希望父标题一加载到存储中就会显示出来 无需计算道具 只需在模板中使用以下内容: <li>Item: {{item.title}}, Parent: {{item.parent.title}}</li> 项:{{Item.title},父项:{{{Item.Parent.title} 而且parent关系应该是async:true不需要计算道具 只需在模板中使用以下内容: <li>Item: {{
无需计算道具 只需在模板中使用以下内容:
<li>Item: {{item.title}}, Parent: {{item.parent.title}}</li>
项:{{Item.title},父项:{{{Item.Parent.title}
而且
parent
关系应该是async:true
不需要计算道具
只需在模板中使用以下内容:
<li>Item: {{item.title}}, Parent: {{item.parent.title}}</li>
项:{{Item.title},父项:{{{Item.Parent.title}
而且parent
关系应该是async:true