We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c3d8c commit efb2fc9Copy full SHA for efb2fc9
src/tutorial/src/step-7/_hint/App/composition.js
@@ -13,7 +13,7 @@ export default {
13
])
14
15
function addTodo() {
16
- todos.value.push({ text: newTodo.value })
+ todos.value.push({ id: id++, text: newTodo.value })
17
newTodo.value = ''
18
}
19
src/tutorial/src/step-7/_hint/App/options.js
@@ -14,7 +14,7 @@ export default {
},
methods: {
addTodo() {
- this.todos.push({ text: this.newTodo })
+ this.todos.push({ id: id++, text: this.newTodo })
this.newTodo = ''
20
removeTodo(todo) {
0 commit comments