I have a list of items:
<ul>
{{#each applications}}
<li>
<a {{bindAttr href="url"}}
{{action "appClicked" on="click"}}>
{{name}}
</a>
</li>
{{/each}}
</ul>
On click it calls the method appClicked
of the view, that this template belongs to. I want to pass some information (for example, the name of the application) to the method appClicked
. Something like, {{action "appClicked(name)" on="click"}}
.
Is it possible, and how?