<OUTDATED> about {{linkTo}} in Ember.js Guide

The #linkTo helper takes three parameters.

  1. The route, in your case posts.post
  2. The context, here it is the particular post object you are referring to in the loop
  3. An options hash (currently title is supported)

Because the posts.post route is a dynamic route, e.g. it can be for one of a collection of posts, we must provide the #linkTo helper with which particular post you are wanting to link to.


What the other people said in terms of the arguments passed to the #link-to helper in Ember is accurate here is the link to the documentation for anyone that is looking for more info.

You have the route name that you are linking to and the second argument is providing the model context.

Here is more info:

http://emberjs.com/api/classes/Ember.Templates.helpers.html#method_link-to