Skip to content

Commit c4bcca2

Browse files
committed
fix
1 parent 9cb19c4 commit c4bcca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/guide/computed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ computed: {
6868
// ...
6969
```
7070

71-
### Computed Poperty Caching
71+
### Computed Property Caching
7272

7373
Before 0.12.8, computed properties behave just like getters - every time you access it, the getter function is re-evaluated. In 0.12.8 this has been improved - computed properties are cached and lazily re-evaluated only when one of its reactive dependencies have changed.
7474

@@ -91,7 +91,7 @@ var vm = new Vue({
9191

9292
In the example above, the computed property relies on `vm.msg`. Because this is an observed data property on the Vue instance, it is considered a reactive dependency. Whenever `vm.msg` is changed, `vm.example`'s value will be re-evaludated.
9393

94-
However, `Date.now()` is **not** a reactive dependency, because it has nothing to do with Vue's data observation system. Therefore, when you programatically access `vm.computed`, you will find the timestamp to remain the same unless `vm.msg` triggered a re-evaluation.
94+
However, `Date.now()` is **not** a reactive dependency, because it has nothing to do with Vue's data observation system. Therefore, when you programatically access `vm.example`, you will find the timestamp to remain the same unless `vm.msg` triggered a re-evaluation.
9595

9696
Sometimes you may want to preserve the simple getter-like behavior, where every time you access `vm.example` it is simply re-evaluated. Starting in 0.12.11, it's possible to turn off caching for a specific computed property:
9797

0 commit comments

Comments
 (0)