Skip to content

Commit 9c308ff

Browse files
committed
remove vm reference in computed.md
1 parent 7e96c96 commit 9c308ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/essentials/computed.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default {
6969
computed: {
7070
// a computed getter
7171
publishedBooksMessage() {
72-
// `this` points to the vm instance
72+
// `this` points to the component instance
7373
return this.author.books.length > 0 ? 'Yes' : 'No'
7474
}
7575
}
@@ -87,7 +87,7 @@ Here we have declared a computed property `publishedBooksMessage`.
8787

8888
Try to change the value of the `books` array in the application `data` and you will see how `publishedBooksMessage` is changing accordingly.
8989

90-
You can data-bind to computed properties in templates just like a normal property. Vue is aware that `this.publishedBooksMessage` depends on `this.author.books`, so it will update any bindings that depend on `vm.publishedBooksMessage` when `this.author.books` changes.
90+
You can data-bind to computed properties in templates just like a normal property. Vue is aware that `this.publishedBooksMessage` depends on `this.author.books`, so it will update any bindings that depend on `this.publishedBooksMessage` when `this.author.books` changes.
9191

9292
</div>
9393

@@ -188,7 +188,7 @@ Why do we need caching? Imagine we have an expensive computed property `list`, w
188188

189189
<div class="composition-api">
190190

191-
## Computed Debugging **
191+
## Computed Debugging \*\*
192192

193193
It's great that a computed property automatically tracks its reactive dependencies, but in some cases we may want to figure out exactly what is being tracked, or what is causing it to re-compute. We can do that by passing `computed()` a second options object with `onTrack` and `onTrigger` callbacks:
194194

0 commit comments

Comments
 (0)