Skip to content

Commit a6d04b2

Browse files
committed
add instance methods to API docs
refenrece: - expose Vue.set/delete on instances as vm.$set/$delete vuejs/vue@1e74675 - v2.0.0-rc.3 https://github.com/vuejs/vue/releases/tag/v2.0.0-rc.3
1 parent d721f54 commit a6d04b2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/api/index.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,34 @@ type: api
669669
})
670670
// callback is fired immediately with current value of `a`
671671
```
672+
673+
<h3 id="vm-set">vm.$set( object, key, value )</h3>
674+
675+
- **Arguments:**
676+
- `{Object} object`
677+
- `{String} key`
678+
- `{*} value`
679+
680+
- **Returns:** the set value.
681+
682+
- **Usage:**
683+
684+
This is the **alias** of the global `Vue.set`.
685+
686+
- **See also:** [Vue.set](#Vue-set)
687+
688+
<h3 id="vm-delete">vm.$delete( object, key )</h3>
689+
690+
- **Arguments:**
691+
- `{Object} object`
692+
- `{String} key`
693+
694+
- **Usage:**
695+
696+
This is the **alias** of the global `Vue.delete`.
697+
698+
- **See also:** [Vue.delete](#Vue-delete)
699+
672700
## Instance Methods / Events
673701

674702
<h3 id="vm-on">vm.$on( event, callback )</h3>

0 commit comments

Comments
 (0)