I'm reading guide of Ember.js templates. In the handlebar part of the first example of above link, they used
{{#linkTo posts.post post}}
but I thought
{{#linkTo posts.post}}
would work.
Why do I need second argument 'post'?
I read the explanation:
If the route has a dynamic segment, a model that represents the segment. By default, Ember.js will replace the segment with the value of the object's id property.
but I can't associate this explanation with question above.