watch props change vue code example
Example: how to watch for changes within a prop in vue
watch: {
$props: {
handler() {
this.parseData();
},
deep: true,
immediate: true,
},
watch: {
$props: {
handler() {
this.parseData();
},
deep: true,
immediate: true,
},