Skip to content

Commit 044afba

Browse files
Update reactivity.md
1 parent d56ef7e commit 044afba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/reactivity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ vm.items.splice(indexOfItem, 1, newValue)
9090
You can also use the [`vm.$set`](/v2/api/#vm-set) instance method, which is an alias for the global `Vue.set`:
9191

9292
``` js
93-
vm.$set(vm.items, indexOfItem, newValue)
93+
this.$set(this.items, indexOfItem, newValue)
9494
```
9595

9696
To deal with caveat 2, you can use `splice`:

0 commit comments

Comments
 (0)