Nuxt/test/fixtures/ssr/pages/asyncData.vue
2017-07-03 22:49:22 +04:30

16 lines
203 B
Vue

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