Reputation: 815
Can someone tell me why this is not working in the latest emberjs version:
{{#each link in breadcrumb}}
<li>
{{#link-to link.url}} {{link.name}} {{/link-to}}
</li>
{{/each}}
Within the link-to helper the link.url does not get resolved. If i provide a hardcoded String value as parameter for the link-to helper it works fine.
The console says:
`Uncaught TypeError: Cannot read property '__ember1387120205571_meta' of undefined
UPDATE:
The testdata looks like this:
var breadcrumb = [ {name: 'Link1', url: 'link1'}, {name: 'Link2', url: 'link2'} ];
Upvotes: 0
Views: 224
Reputation: 19128
Like the message says, link.url
has a null/undefined value, or the provided route name is invalid. Make sure that link.url
exists, and link is an object with a non-empty url property not an array etc.
Upvotes: 1