jeudi 23 mars 2017

How to bind computed property with classNameBindings in Ember 2.x

There is no doc on how to bind computed property for classNameBindings.

  classNameBindings: ['isChecked'],

  isChecked: computed('selected', {
    get() {
      return this.get('selected').includes(this.get('row'));
    }
  }),

Code above does not trigger computed property.




Aucun commentaire:

Enregistrer un commentaire