mercredi 7 mars 2018

Ember computed property for nested array element

In my Ember app, I have a component which has array with attributes like below;

secInfoObj.addRows[0].prop-1.value
secInfoObj.addRows[0].prop-2.value

secInfoObj.addRows[1].prop-1.value
secInfoObj.addRows[1].prop-2.value

Now I want a computed property which should be triggered whenever the inner prop-1.value or prop-2.value changes.

Not sure how do I add a computed property for such nested properties ?




Aucun commentaire:

Enregistrer un commentaire