mardi 23 juin 2015

Binding actions similar to bind-attr in ember

Hi i am using emberJS for binding attributes to the elements can be done by using bind-attr , the same i want to do for action to user interaction.

  <button {{#if DS.session.canEditTrailers}} {{action "addTTU"}} {{/if}}  
  {{bind-attr class="DS.session.canEditTrailers:ttuName:readOnlyTTUName" 
  disabled="DS.session.canEditTrailers::disabled"}}>

Here in above i used if condition for binding action to the element button. It is not working..Can any please tell me is there any solution similar like bind-attr for actions.




Aucun commentaire:

Enregistrer un commentaire