-
+ bind-class="{completed: todo.completed, editing: todo == editedTodo}">
- - + ++ on-blur="doneEdit(todo)" + on-keyup:enter="doneEdit(todo)" + on-keyup:esc="cancelEdit(todo)">
{{stats | json}}diff --git a/examples/todomvc/index.html b/examples/todomvc/index.html index 74a9b3c0c..5bccf6987 100644 --- a/examples/todomvc/index.html +++ b/examples/todomvc/index.html @@ -14,25 +14,25 @@ autofocus autocomplete="off" placeholder="What needs to be done?" v-model="newTodo" - v-on="keyup:addTodo | key 'enter'"> + on-keyup="addTodo | key 'enter'">