Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created January 27, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/b836a2b3216453ce0a55d7eb3f104e38 to your computer and use it in GitHub Desktop.
Save uno-de-piera/b836a2b3216453ce0a55d7eb3f104e38 to your computer and use it in GitHub Desktop.
<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