Closed chunlinyao closed 2 years ago
Can watch change in child components.
computed: { result: function() { return this.$parent.fieldsChanged; } }, watch: { '$parent.fieldsChanged': function(newValue, oldValue) { console.log('fieldsChanged changed from ' + JSON.stringify(oldValue) + ' to ' + JSON.stringify(newValue)); } }
Looks good to me, thank you Chunlin
Can watch change in child components.