Browse files

Applying classes dynamically & Vue `v-bind`

  • Loading branch information...
amejiarosario committed Aug 13, 2018
1 parent fcd305c commit 2145c362b3a74698ac46c7322f55294d34fb6847
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.html
@@ -25,7 +25,7 @@ <h1 v-text="title"></h1>
<ul class="todo-list">
<!-- These are here just to show the structure of the list items -->
<!-- List items should get the class `editing` when editing and `completed` when marked as completed -->
<li v-for="todo in todos">
<li v-for="todo in todos" :class="{ completed: todo.isDone }">
<div class="view">
<input class="toggle" type="checkbox">

0 comments on commit 2145c36

Please sign in to comment.