Skip to content

Instantly share code, notes, and snippets.

@cwg999
Created April 2, 2019 17:54
Show Gist options
  • Save cwg999/24ae62d5ff6fd6c167903a39e4273011 to your computer and use it in GitHub Desktop.
Save cwg999/24ae62d5ff6fd6c167903a39e4273011 to your computer and use it in GitHub Desktop.
vue stackoverflow starter
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
</div>
<script>
new Vue({
el:"#app",
template:`
<div class="row">
<div color="secondary" v-for="(o,key) in list" :key="list.id">
{{o.name}}
</div>
</div>
`,
data () {
return {
list: [{id:1,name:'John'},{id:2,name:'Jane'}]
}
},
methods: {
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment