{{link-to}} inside {{each}} without deleting the old template in ember

Starting with this element, ember, and I can’t find the {{link-to}} helper in descriptors working as I expect if the loop {{each}}.

{{#each}}
  <h1>{{name}}</h1>
  <p>{{description}}</p>
  <p>{{#link-to 'cocktail' this}}more...{{/link-to}}
{{/each}}

I have a navigation bar (home, cocktails, about) and an exit under it to display templates.

For the / cocktails route, all cocktails are listed using {{each}} passing through an array in my model. And for each cocktail there is a link to "/ cocktails /: cocktail_id", in which only one cocktail should be displayed.

The transition to each of the routes behaves as expected, but using the link to the page with cocktail lists displays a new template without deleting the cocktail list.

http://jsfiddle.net/tobias_g/Lxebv/

I can not say that there is some kind of help / missing.

+3
2

, - . <p> html. <p />. handlebars.

+2

{{link-to}}, , .

@zaius , Ive , , .

https://github.com/wycats/handlebars.js/issues/738

+2

All Articles