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

14 lines
208 B
Vue
Raw Normal View History

2016-12-27 15:31:25 +00:00
<template>
<p>{{ name }}</p>
</template>
<script>
export default {
asyncData (context, callback) {
2016-12-27 15:31:25 +00:00
setTimeout(function () {
2020-11-30 22:44:04 +00:00
callback(null, { name: 'Callback Nuxt' })
2016-12-27 15:31:25 +00:00
}, 10)
}
}
</script>