0👍
Just watch what you need:
watch: {
'input.country': {
handler(newCountry) {
}
}
}
- [Vuejs]-How to make a <tr> element in vuejs that contains <slot> with html
- [Vuejs]-When using Vue.js in existing HTML CSS website, the arrangement of the div is not as intended
0👍
Declare a computed
value who target this.item.country
:
computed: {
itemCountry() {
return this.item.country;
}
}
And watch this new computed value:
watch: {
itemCountry: {
immediate: true,
handler(newInput) {
// do your stuff
}
}
}
Source:stackexchange.com