Skip to content

Commit 4fee2df

Browse files
committed
add section about block repeat
1 parent d10f441 commit 4fee2df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/guide/list.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ var demo = new Vue({
4444
})
4545
</script>
4646

47+
## Block Repeat
48+
49+
Sometimes you might want to repeat a block of more than one nodes - in that case, you can use a `<template>` tag to wrap the repeat block. The `<template>` tag here merely serves as a semantic wrapper. For example:
50+
51+
``` html
52+
<ul>
53+
<template v-repeat="list">
54+
<li>{{msg}}</li>
55+
<li class="divider"></li>
56+
</template>
57+
</ul>
58+
```
59+
4760
## Arrays of Primitive Values
4861

4962
For Arrays containing primitive values, you can access the value simply as `$value`:

0 commit comments

Comments
 (0)