Nuxt/test/fixtures/basic/pages/callback-async-data.vue
2017-10-31 14:26:19 +01:00

14 lines
216 B
Vue

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