Links
The {{link-to}} Helper
You create a link to a route using the {{link-to}} helper.
app/router.js
Router.map(function() {
this.route('photos', function(){
this.route('edit', { path: '/:photo_id' });
});
});
app/templates/photos.hbs
<ul>
{{#each photos as |photo|}}
<li>{{#link-to "photos.edit" photo}}{{photo.title}}{{/link-to}}</li>
{{/each}}
</ul>
If the model for the photos template is a list of three photos, the rendered HTML would look somethin