Answer the question
In order to leave comments, you need to log in
Why doesn't the watcher return the old value?
According to the documentation, when using watch
it, it is possible to get the old, previous data value. But both are the same for me. What is the point? https://codepen.io/dubx/pen/zjVQNv
watch: {
array: function (o, n) {
this.oldData = o
this.newData = n
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question