1// It is important that the watch function be named the same as the data/computed property.
2new Vue({
3 computed: {
4 parsedInput () {
5 return parse(this.userInput)
6 }
7 },
8 methods: {
9 process () {
10 serverProcess(this.parsedInput);
11 },
12 },
13 watch: {
14 parsedInput() {
15 this.process()
16 }
17 }
18})
19