lundi 9 novembre 2015

How to change input helper's class based on some condition in Ember

How can the if condition clause be used in an input helper.

I tried:

{{input class="{{if errors.name "style-error"}}" }}

It caused building error.




Aucun commentaire:

Enregistrer un commentaire