We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56ef7e commit 044afbaCopy full SHA for 044afba
src/v2/guide/reactivity.md
@@ -90,7 +90,7 @@ vm.items.splice(indexOfItem, 1, newValue)
90
You can also use the [`vm.$set`](/v2/api/#vm-set) instance method, which is an alias for the global `Vue.set`:
91
92
``` js
93
-vm.$set(vm.items, indexOfItem, newValue)
+this.$set(this.items, indexOfItem, newValue)
94
```
95
96
To deal with caveat 2, you can use `splice`:
0 commit comments