Nuxt/test/fixtures/basic/pages/callback-async-data.vue
2020-11-30 23:44:04 +01:00

14 lines
208 B
Vue

<template>
<p>{{ name }}</p>
</template>
<script>
export default {
asyncData (context, callback) {
setTimeout(function () {
callback(null, { name: 'Callback Nuxt' })
}, 10)
}
}
</script>