Skip to content
Permalink
Browse files
data/v-for追加
  • Loading branch information
sin-tanaka committed Sep 25, 2017
1 parent 07faa15 commit 852419626e620efa0397f685e67f79b2ee926998
Showing 1 changed file with 23 additions and 5 deletions.
@@ -8,10 +8,10 @@
<p>task:</p>
</form>
<div class="task-list">
<label class="task-list__item"><input type="checkbox"><button>EDIT</button>vue-router</label>
<label class="task-list__item"><input type="checkbox"><button>EDIT</button>vuex</label>
<label class="task-list__item"><input type="checkbox"><button>EDIT</button>vue-loader</label>
<label class="task-list__item--checked"><input type="checkbox" checked><button>EDIT</button>awesome-vue</label>
<label class="task-list__item"
v-for="todo in todos">
<input type="checkbox"><button>EDIT</button>{{ todo.text }}
</label>
</div>
</div>
</template>
@@ -21,7 +21,25 @@ export default {
name: 'hello',
data () {
return {
msg: 'Welcome to Your Vue.js App'
msg: 'Welcome to Your Vue.js App',
todos : [
{
text : 'vue-router',
done: false
},
{
text : 'vuex',
done: false
},
{
text : 'vue-loader',
done: false
},
{
text : 'awesome-vue',
done: true
},
]
}
}
}

0 comments on commit 8524196

Please sign in to comment.