Permalink
Browse files

list rendering with v-for

  • Loading branch information...
amejiarosario committed Aug 12, 2018
1 parent 2d1f2e5 commit 3dc48710f47c05a8d3ade5289ff04c185225ea5d
Showing with 2 additions and 10 deletions.
  1. +2 −10 index.html
@@ -23,18 +23,10 @@ <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 class="completed">
<div class="view">
<input class="toggle" type="checkbox" checked>
<label>Taste JavaScript</label>
<button class="destroy"></button>
</div>
<input class="edit" value="Create a TodoMVC template">
</li>
<li>
<li v-for="todo in todos">
<div class="view">
<input class="toggle" type="checkbox">
<label>Buy a unicorn</label>
<label>{{todo.text}}</label>
<button class="destroy"></button>
</div>
<input class="edit" value="Rule the web">

0 comments on commit 3dc4871

Please sign in to comment.