Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

@tracked isActive

$
0
0

@qwerty wrote:

Hi,

in my template I try use conditional class.

{{#each this.items as |item|}}
  <button class="button is-small {{if this.isActive "is-success"}}" {{action this.select item.id item.name}}>{{item.name}}</button>
{{/each}}

I would like to isActive is true when item.id value is 2. I don`t know how should look isActive property.

Thanks for help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles