To watch some changing that comes from a prop provided by parent component just use:
watch: {
propName(newValue, oldValue) {
// do something
},
},
To watch some changing that comes from a prop provided by parent component just use:
watch: {
propName(newValue, oldValue) {
// do something
},
},
Deixe um comentário