vendredi 24 mars 2017

Using inline "if helper" with logical operator in Ember

So basically, I just want to add class active if index is equal to 0.


  <div class="item add active class here if index is 0">
  </div>


I know using this code, won't work because built-in if helper in ember doesn't support logical operators. Ember Conditionals

So what are the ways to achieve this?




Aucun commentaire:

Enregistrer un commentaire