mercredi 6 mai 2015

How pass parameter in action of handlebars input component? Using Ember.js

I need to use this input component:

{{input type="textarea" value=fileName class="field" action="setFileName" on="key-press"}}

But I have to pass a paramenter.

I don't want to do:

<input type="textarea" {{bind-attr value=fileName}} class="field" {{action 'setFileName' param on="keyPress"}}

Aucun commentaire:

Enregistrer un commentaire