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