what does watch do in vue code example
Example: vue watch
// in component
methods: {
reverseMessage: function () {
return this.message.split('').reverse().join('')
}
}
// in component
methods: {
reverseMessage: function () {
return this.message.split('').reverse().join('')
}
}