Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var values = [
- Ember.Object.create({id: 1, name: 'One'}),
- Ember.Object.create({id: 1, name: 'Two'}),
- Ember.Object.create({id: 1, name: 'Three'})
- ];
- {link-to 'One' 'my-route' 1}}, {link-to 'Two' 'my-route' 2}}, and {link-to 'Three' 'my-route' 3}}
- One, Two, and Three
- {{#each item in values}}
- <li>{{link-to item.name 'my-route' item.id}}</li>
- {{/each}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement