Created
August 25, 2017 22:03
-
-
Save codemwnci/d53c85fc5a1b97cd69d5a2e89fa49d7e to your computer and use it in GitHub Desktop.
update todo vuejs / list item code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li v-for="todo in todos"> | |
<input type="checkbox" :checked="todo.done" @click="toggleCheck(todo)"> | |
{{todo.text}} | |
<a href="#" v-if="todo.done" @click="deleteTodo(todo.id)">(delete)</a> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment