Problem
Changes to an object are not being detected by the listening child component.
Context
I have an empty object that is storing values as they come back from an API. This object is bound to a property in a child component.
data () {
return {
filterOperators: {}
};
},
Each time this method is called, a named array containing the response is added to the object.
getfilterOperators: function (fieldName) {
this.filterOperatorsAction(fieldName, response => {
this.$data.filterOperators[fieldName] = response.Data;
});
}