Nuxt/test/fixtures/basic/pages/callback-async-data.vue

14 lines
216 B
Vue
Raw Normal View History

2016-12-27 15:31:25 +00:00
<template>
<p>{{ name }}</p>
</template>
<script>
export default {
2017-10-31 13:26:19 +00:00
async asyncData(context, callback) {
2016-12-27 15:31:25 +00:00
setTimeout(function () {
callback(null, { name: 'Callback Nuxt.js' })
}, 10)
}
}
</script>