Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<div id='list'>
<child v-for='item in items' :key='' :child='item'></child>
Vue.component('child', {
props: ['child'],
template: '<li>{{ }}</li>'
app = new Vue({
el: '#list',
data: {
items: [
{ name: 'item1'},
{ name: 'item2'},
{ name: 'item3'},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment