0👍
The correct syntax is
watch : {
inputs : function(val, oldVal){
//val : New value
//oldVal : Previous value.
}
}
- [Vuejs]-Page to route 404 with login
- [Vuejs]-Newly added post takes the likes and comment counts of previous post in vue.js/laravel project
Source:stackexchange.com