You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.answer='Questions usually contain a question mark. ;-)'
224
-
return
225
-
}
226
220
this.answer='Thinking...'
227
221
axios
228
222
.get('https://yesno.wtf/api')
@@ -244,6 +238,6 @@ Result:
244
238
245
239
<computed-2 />
246
240
247
-
In this case, using the `watch` option allows us to perform an asynchronous operation (accessing an API), limit how often we perform that operation, and set intermediary states until we get a final answer. None of that would be possible with a computed property.
241
+
In this case, using the `watch` option allows us to perform an asynchronous operation (accessing an API)and sets a condition for performing this operation. None of that would be possible with a computed property.
248
242
249
243
In addition to the `watch` option, you can also use the imperative [vm.\$watch API](TODO:../api/#vm-watch).
0 commit comments