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

16 lines
183 B
Vue

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