From 06c36ccea0568be9f7d64c5d66967e84385779ad Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Wed, 6 Jan 2021 16:57:52 +0000 Subject: [PATCH] fix: remove slashes before dollar signs --- src/api/instance-methods.md | 8 ++++---- src/api/options-data.md | 2 +- src/api/options-lifecycle-hooks.md | 4 ++-- src/guide/computed.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/api/instance-methods.md b/src/api/instance-methods.md index 2e553adb09..f36cc61194 100644 --- a/src/api/instance-methods.md +++ b/src/api/instance-methods.md @@ -1,6 +1,6 @@ # Instance Methods -## \$watch +## $watch - **Arguments:** @@ -193,7 +193,7 @@ - **See also:** [Watchers](../guide/computed.html#watchers) -## \$emit +## $emit - **Arguments:** @@ -274,13 +274,13 @@ - [`emits` option](./options-data.html#emits) - [Emitting a Value With an Event](../guide/component-basics.html#emitting-a-value-with-an-event) -## \$forceUpdate +## $forceUpdate - **Usage:** Force the component instance to re-render. Note it does not affect all child components, only the instance itself and child components with inserted slot content. -## \$nextTick +## $nextTick - **Arguments:** diff --git a/src/api/options-data.md b/src/api/options-data.md index 7e87f0c348..ccf9ea7ca1 100644 --- a/src/api/options-data.md +++ b/src/api/options-data.md @@ -177,7 +177,7 @@ - **Details:** - An object where keys are expressions to watch and values are the corresponding callbacks. The value can also be a string of a method name, or an Object that contains additional options. The component instance will call `$watch()` for each entry in the object at instantiation. See [\$watch](instance-methods.html#watch) for more information about the `deep`, `immediate` and `flush` options. + An object where keys are expressions to watch and values are the corresponding callbacks. The value can also be a string of a method name, or an Object that contains additional options. The component instance will call `$watch()` for each entry in the object at instantiation. See [$watch](instance-methods.html#watch) for more information about the `deep`, `immediate` and `flush` options. - **Example:** diff --git a/src/api/options-lifecycle-hooks.md b/src/api/options-lifecycle-hooks.md index 9e1a285c1f..543ce9bf69 100644 --- a/src/api/options-lifecycle-hooks.md +++ b/src/api/options-lifecycle-hooks.md @@ -44,7 +44,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc Called after the instance has been mounted, where element, passed to `Vue.createApp({}).mount()` is replaced by the newly created `vm.$el`. If the root instance is mounted to an in-document element, `vm.$el` will also be in-document when `mounted` is called. - Note that `mounted` does **not** guarantee that all child components have also been mounted. If you want to wait until the entire view has been rendered, you can use [vm.\$nextTick](../api/instance-methods.html#nexttick) inside of `mounted`: + Note that `mounted` does **not** guarantee that all child components have also been mounted. If you want to wait until the entire view has been rendered, you can use [vm.$nextTick](../api/instance-methods.html#nexttick) inside of `mounted`: ```js mounted() { @@ -81,7 +81,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc The component's DOM will have been updated when this hook is called, so you can perform DOM-dependent operations here. However, in most cases you should avoid changing state inside the hook. To react to state changes, it's usually better to use a [computed property](./options-data.html#computed) or [watcher](./options-data.html#watch) instead. - Note that `updated` does **not** guarantee that all child components have also been re-rendered. If you want to wait until the entire view has been re-rendered, you can use [vm.\$nextTick](../api/instance-methods.html#nexttick) inside of `updated`: + Note that `updated` does **not** guarantee that all child components have also been re-rendered. If you want to wait until the entire view has been re-rendered, you can use [vm.$nextTick](../api/instance-methods.html#nexttick) inside of `updated`: ```js updated() { diff --git a/src/guide/computed.md b/src/guide/computed.md index 193fc1a139..ab4bb2965b 100644 --- a/src/guide/computed.md +++ b/src/guide/computed.md @@ -196,7 +196,7 @@ Result: 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. -In addition to the `watch` option, you can also use the imperative [vm.\$watch API](../api/instance-methods.html#watch). +In addition to the `watch` option, you can also use the imperative [vm.$watch API](../api/instance-methods.html#watch). ### Computed vs Watched Property