Skip to content

Commit b0d7f00

Browse files
committed
Merge pull request #146 from vuejs-jp/improve/reactivity
improve reactivity section on guide
2 parents 26dcaf6 + 42b63ac commit b0d7f00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/reactivity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We've covered most of the basics - now it's time to take a deep dive! One of Vue
88

99
## How Changes Are Tracked
1010

11-
When you pass a plain JavaScript object to a Vue.js instance as its `data` option, Vue.js will walk through all of its properties and convert them to getter/setters using [Object.defineProperty](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty). This is an ES5-only and un-shimmable feature, which is why Vue.js doesn't support IE8 and below.
11+
When you pass a plain JavaScript object to a Vue instance as its `data` option, Vue.js will walk through all of its properties and convert them to getter/setters using [Object.defineProperty](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty). This is an ES5-only and un-shimmable feature, which is why Vue.js doesn't support IE8 and below.
1212

1313
The getter/setters are invisible to the user, but under the hood they enable Vue.js to perform dependency-tracking and change-notification when properties are accessed or modified. One caveat is that browser consoles format getter/setters differently when converted data objects are logged, so make sure to use the `vm.$log()` instance method for more inspection-friendly output.
1414

@@ -34,7 +34,7 @@ data.b = 2
3434
// `data.b` is NOT reactive
3535
```
3636

37-
However, there are ways to "add a property and make it reactive" after an instance has been created.
37+
However, there are ways to **add a property and make it reactive** after an instance has been created.
3838

3939
For Vue instances, you can use the `$set(path, value)` instance method:
4040

0 commit comments

Comments
 (0)