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

14 lines
212 B
Vue
Raw Normal View History

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