Skip to content

Instantly share code, notes, and snippets.

@hasan-almujtaba
Created October 24, 2020 20:37
Show Gist options
  • Save hasan-almujtaba/388d1d731410857dff6bd7fc46f16a8b to your computer and use it in GitHub Desktop.
Save hasan-almujtaba/388d1d731410857dff6bd7fc46f16a8b to your computer and use it in GitHub Desktop.
<template>
<v-row>
<v-col v-for="(item, i) in items" :key="i" cols="12" lg="4">
<v-card>
<v-card-title v-text="item.name"></v-card-title>
</v-card>
</v-col>
</v-row>
</template>
<script>
export default {
async asyncData({ $axios }) {
const { data } = await $axios.get('/users')
return {
items: data,
}
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment