Skip to content

Commit aa95bf2

Browse files
johnathankentkazupon
authored andcommitted
Add required v-for :key to the the second component list example. Related to PR #792 (#801)
1 parent 1664068 commit aa95bf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/v2/guide/list.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ However, this won't automatically pass any data to the component, because compon
229229
<my-component
230230
v-for="(item, index) in items"
231231
v-bind:item="item"
232-
v-bind:index="index">
232+
v-bind:index="index"
233+
v-bind:key="item.id">
233234
</my-component>
234235
```
235236

0 commit comments

Comments
 (0)