mercredi 17 juin 2015

How to bind value to attribute if this value will changes in each?

I try to do it like that:

{{#each item in controller.records}}
  <li {{bind-attr class=":message (compare controller.currentUser.id item.user_id)::mes-self" >
   .....
  </li>
{{/each}}

And mes-self didn't add to class attribute. Is there possibility to do that?

Aucun commentaire:

Enregistrer un commentaire