samedi 6 juin 2015

Ember computed property which depends on an ArrayProxy is not being recomputed when the 'first new item' is added to the ArrayProxy

Here is the computed property I have defined.

taggedValues: (->
    console.log "I am Here"
       Ember.A(@get('model.queryValues.firstObject.valueText').split(","))
).property('model.queryValues.@each.valueText')

In an action I am adding a new element to model.queryValues with valueText attribute. This computed property is not being triggered when i add the first new item to the array

More Context: This is a computed property in an item controller.

Aucun commentaire:

Enregistrer un commentaire