@GDee wrote:
Hi everyone, i am very new to Ember
I have a template which has the list of categories. When i click on a link in the list a nested template is correctly showing. When i click another category the URL correctly changes but nested template not updated
My router:Router.map(function() { this.route('subcategory', { path: "/:sub_id"}, function() { this.route('items', { path: "/:item_id" }) }); });
Parent template:
<div class="todo"> <ul class="todo-list"> {{#each model as |category|}} <li> <span class="desc">{{category.title}}</span> <span class="label label-info" > {{#link-to 'subcategory.items' category.id }}<i class="fa fa-barcode" ></i>{{/link-to}} </span> </li> {{/each}} </ul> </div> {{outlet}}
What am I doing wrong? Thanks !
Posts: 1
Participants: 1