lundi 10 octobre 2016

Know which among the dependent keys caused the computed property change

In Ember, is there a way to get which among the dependent keys caused a computed property to recalculate?

eg:

myProp: Ember.computed('dep1','dep2','dep3', function(){
    console.log('MyProp was recalculated due to a change in property :' <dep 1,2 or 3(get the value here)>);
    return ...;
}),

Kindly let me know if I should provide any additional details.




Aucun commentaire:

Enregistrer un commentaire