Reputation: 11778
How can I use computed to monitor async loaded relationships?
In the following example, I would expect the parent title to be displayed as soon as it's loaded into the store.
https://emberjs.jsbin.com/yakofaxazu/1/edit?html,js,console,output
Upvotes: 0
Views: 47
Reputation: 9406
No need for computed props.
Just use below in template :
<li>Item: {{item.title}}, Parent: {{item.parent.title}}</li>
And also the parent
relationship should be async: true
Upvotes: 2