diff --git a/src/v2/guide/computed.md b/src/v2/guide/computed.md index 1fd03996d3..fdf9fdcc62 100644 --- a/src/v2/guide/computed.md +++ b/src/v2/guide/computed.md @@ -213,7 +213,7 @@ var watchExampleVM = new Vue({ }, watch: { // whenever question changes, this function will run - question: function (newQuestion) { + question: function (newQuestion, oldQuestion) { this.answer = 'Waiting for you to stop typing...' this.getAnswer() } @@ -271,7 +271,7 @@ var watchExampleVM = new Vue({ answer: 'I cannot give you an answer until you ask a question!' }, watch: { - question: function (newQuestion) { + question: function (newQuestion, oldQuestion) { this.answer = 'Waiting for you to stop typing...' this.getAnswer() }