You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/guide/list.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,19 @@ var demo = new Vue({
44
44
})
45
45
</script>
46
46
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
+
<templatev-repeat="list">
54
+
<li>{{msg}}</li>
55
+
<liclass="divider"></li>
56
+
</template>
57
+
</ul>
58
+
```
59
+
47
60
## Arrays of Primitive Values
48
61
49
62
For Arrays containing primitive values, you can access the value simply as `$value`:
0 commit comments