Hi have some items that fires an action, and this action changes some property of the model, and de model fetches again with new params automatically.
I would like to add the 'active' to the current class "list-group-item", but I'm not using {{#link-to}}, just a plain {{action...}}
Is this not possible with just the {{action...}} ?
Thanks,
code:
<div class="list-group">
{{#each issues_types as |issueType|}}
<a href="#" class="list-group-item" {{action "setIssueType" issueType.id}}>
{{issueType.name}}
<span class="badge">issueType.count</span>
</a>
{{/each}}
Aucun commentaire:
Enregistrer un commentaire