Nuxt/test/fixtures/basic/pages/callback-async-data.vue
2017-03-01 16:03:46 +01:00

14 lines
217 B
Vue

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