File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 57
57
< div id ="app ">
58
58
< button id ="show-modal " @click ="showModal = true "> Show Modal</ button >
59
59
<!-- use the modal component, pass in the prop -->
60
- < modal :show& ="showModal ">
60
+ < modal :show.sync ="showModal ">
61
61
<!--
62
62
you can use custom content here to overwrite
63
63
default content
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ <h1>todos</h1>
14
14
autofocus autocomplete ="off "
15
15
placeholder ="What needs to be done? "
16
16
v-model ="newTodo "
17
- @keyup: enter ="addTodo ">
17
+ @keyup. enter ="addTodo ">
18
18
</ header >
19
19
< section class ="main " v-show ="todos.length " v-cloak >
20
20
< input class ="toggle-all " type ="checkbox " v-model ="allDone ">
@@ -31,8 +31,8 @@ <h1>todos</h1>
31
31
v-model ="todo.title "
32
32
v-todo-focus ="todo == editedTodo "
33
33
@blur ="doneEdit(todo) "
34
- @keyup: enter ="doneEdit(todo) "
35
- @keyup: esc ="cancelEdit(todo) ">
34
+ @keyup. enter ="doneEdit(todo) "
35
+ @keyup. esc ="cancelEdit(todo) ">
36
36
</ li >
37
37
</ ul >
38
38
</ section >
You can’t perform that action at this time.
0 commit comments