Skip to content

Remove slashes before dollar signs #782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/api/instance-methods.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Instance Methods

## \$watch
## $watch

- **Arguments:**

Expand Down Expand Up @@ -193,7 +193,7 @@

- **See also:** [Watchers](../guide/computed.html#watchers)

## \$emit
## $emit

- **Arguments:**

Expand Down Expand Up @@ -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:**

Expand Down
2 changes: 1 addition & 1 deletion src/api/options-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**

Expand Down
4 changes: 2 additions & 2 deletions src/api/options-lifecycle-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/guide/computed.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down