Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created Jan 27, 2019
Embed
What would you like to do?
<template lang='pug'>
div.container
ul
li(v-for="user in users" :key="user.id") {{ user.id}} {{ user.name }}
</template>
<script>
export default {
data () {
return {
users: [
{id: 1, name: 'user1'},
{id: 2, name: 'user2'},
{id: 3, name: 'user3'},
]
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment