Skip to content

Commit 72e2e6a

Browse files
author
Sun
authored
Update options-state.md (#1709)
typo?
1 parent 929f0d5 commit 72e2e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/options-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Declare watch callbacks to be invoked on data change.
285285
286286
The `watch` option expects an object where keys are the reactive component instance properties to watch (e.g. properties declared via `data` or `computed`) — and values are the corresponding callbacks. The callback receives the new value and the old value of the watched source.
287287
288-
In addition to a root-level property, The key can also be a simple dot-delimited path, e.g. `a.b.c`. Note that this usage does **not** support complex expressions - only dot-delimited paths are supported. If you need to watch complex data sources, this the imperative [`$watch()`](/api/component-instance.html#watch) API instead.
288+
In addition to a root-level property, The key can also be a simple dot-delimited path, e.g. `a.b.c`. Note that this usage does **not** support complex expressions - only dot-delimited paths are supported. If you need to watch complex data sources, use the imperative [`$watch()`](/api/component-instance.html#watch) API instead.
289289
290290
The value can also be a string of a method name (declared via `methods`), or an object that contains additional options. When using the object syntax, the callback should be declared under the `handler` field. Additional options include:
291291

0 commit comments

Comments
 (0)