mercredi 5 février 2020

EmberJS: Computed property awareness of dependent keys

Let's suppose I have an object that has this structure: { filters: [{ params: { value: ["abc"] }] }.

How can I write a computed property that is aware of changes to the value property? For example, let's say we take one of the filters and do set(filter, 'params.value', ["abc", "123"]). I've been trying with computed('filters.@each.params.value.[]', ...) but it isn't working




Aucun commentaire:

Enregistrer un commentaire