Skip to content
Permalink
Browse files
dataにnewTodoを追加/inputにv-modelで紐付け
  • Loading branch information
sin-tanaka committed Sep 25, 2017
1 parent 7662c3f commit cc50c588d015be8ac2beaa89f4e2bb07bed8ead0
Showing 1 changed file with 4 additions and 3 deletions.
@@ -4,8 +4,8 @@
<form>
<button>ADD TASK</button>
<button>DELETE FINISHED TASKS</button>
<p>input: <input type="text"></p>
<p>task:</p>
<p>input: <input type="text" v-model="newTodo"></p>
<p>task: {{ newTodo }}</p>
</form>
<div class="task-list">
<label class="task-list__item"
@@ -39,7 +39,8 @@ export default {
text : 'awesome-vue',
done: true
},
]
],
newTodo: ""
}
}
}

0 comments on commit cc50c58

Please sign in to comment.