Skip to content

Commit 604de44

Browse files
authored
Update list.md (#820)
1 parent 7f9401e commit 604de44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ When they exist on the same node, `v-if` has a higher priority than `v-for`. Tha
244244
<!-- This will throw an error because property "todo" is not defined on instance. -->
245245

246246
<li v-for="todo in todos" v-if="!todo.isComplete">
247-
{{ todo }}
247+
{{ todo.name }}
248248
</li>
249249
```
250250

@@ -253,7 +253,7 @@ This can be fixed by moving `v-for` to a wrapping `<template>` tag:
253253
```html
254254
<template v-for="todo in todos" :key="todo.name">
255255
<li v-if="!todo.isComplete">
256-
{{ todo }}
256+
{{ todo.name }}
257257
</li>
258258
</template>
259259
```

0 commit comments

Comments
 (0)