Skip to content

Commit ddd0b34

Browse files
committed
Merge pull request vuejs#230 from anbreezee/patch-1
Update forms.md
2 parents ac22744 + 53b2662 commit ddd0b34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/guide/forms.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ Mutiple checkboxes, bound to the same Array:
6666
<br>
6767
<span>Checked names: {{ checkedNames | json }}</span>
6868
```
69+
70+
``` js
71+
new Vue({
72+
el: '...',
73+
data: {
74+
checkedNames: []
75+
}
76+
})
77+
```
78+
6979
{% raw %}
7080
<div id="example-3" class="demo">
7181
<input type="checkbox" id="jack" value="Jack" v-model="checkedNames">

0 commit comments

Comments
 (0)