Nuxt/test/fixtures/ssr/pages/asyncData.vue

16 lines
189 B
Vue

<template>
<foobar>{{ id }}</foobar>
</template>
<script>
import { nextId } from '@/lib/db'
export default {
async asyncData() {
return {
id: nextId()
}
}
}
</script>