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

14 lines
210 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 () {
callback(null, { name: 'Callback Nuxt.js' })
}, 10)
}
}
</script>