Skip to content

Commit 67e1634

Browse files
committed
twoWay prop
1 parent 3ed6368 commit 67e1634

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/guide/components.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ Vue.component('example', {
228228
type: Number,
229229
default: 100
230230
},
231+
// a two-way prop. will throw warning if binding type
232+
// does not match.
233+
twoWayProp: {
234+
twoWay: true
235+
},
231236
// custom validator function
232237
greaterThanTen: {
233238
validator: function (value) {

0 commit comments

Comments
 (0)