Skip to content

Commit 8ceaf9e

Browse files
committed
update examples for new syntax
1 parent b36397b commit 8ceaf9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/modal/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<div id="app">
5858
<button id="show-modal" @click="showModal = true">Show Modal</button>
5959
<!-- use the modal component, pass in the prop -->
60-
<modal :show&="showModal">
60+
<modal :show.sync="showModal">
6161
<!--
6262
you can use custom content here to overwrite
6363
default content

examples/todomvc/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1>todos</h1>
1414
autofocus autocomplete="off"
1515
placeholder="What needs to be done?"
1616
v-model="newTodo"
17-
@keyup:enter="addTodo">
17+
@keyup.enter="addTodo">
1818
</header>
1919
<section class="main" v-show="todos.length" v-cloak>
2020
<input class="toggle-all" type="checkbox" v-model="allDone">
@@ -31,8 +31,8 @@ <h1>todos</h1>
3131
v-model="todo.title"
3232
v-todo-focus="todo == editedTodo"
3333
@blur="doneEdit(todo)"
34-
@keyup:enter="doneEdit(todo)"
35-
@keyup:esc="cancelEdit(todo)">
34+
@keyup.enter="doneEdit(todo)"
35+
@keyup.esc="cancelEdit(todo)">
3636
</li>
3737
</ul>
3838
</section>

0 commit comments

Comments
 (0)