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

14 lines
202 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
<p>{{ name }}</p>
</template>
<script>
export default {
asyncData () {
2016-11-07 01:34:58 +00:00
return new Promise((resolve) => {
2020-11-30 22:44:04 +00:00
setTimeout(() => resolve({ name: 'Nuxt' }), 10)
2016-11-07 01:34:58 +00:00
})
}
}
</script>