Skip to content

Commit ffbd03f

Browse files
authored
Update component-instance.md
1 parent 78e74b0 commit ffbd03f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/component-instance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ Imperative API for creating watchers.
251251
Stopping the watcher:
252252
253253
```js
254-
const stopWatching = this.$watch('a', cb)
254+
const unwatch = this.$watch('a', cb)
255255

256256
// later...
257-
stopWatching()
257+
unwatch()
258258
```
259259

260260
- **See also:**

0 commit comments

Comments
 (0)