Skip to content

Revert 1767 use keyed v for loop #1800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/v2/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ There are quite a few other directives, each with its own special functionality.
``` html
<div id="app-4">
<ol>
<li v-for="todo in todos"
:key="todo.id"
>
<li v-for="todo in todos">
{{ todo.text }}
</li>
</ol>
Expand All @@ -164,9 +162,9 @@ var app4 = new Vue({
el: '#app-4',
data: {
todos: [
{ id: 1, text: 'Learn JavaScript' },
{ id: 2, text: 'Learn Vue' },
{ id: 3, text: 'Build something awesome' }
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue' },
{ text: 'Build something awesome' }
]
}
})
Expand Down