Nuxt/test/fixtures/children/pages/parent.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

24 lines
357 B
Vue

<template>
<div>
<h1>I am the {{ name }}</h1>
<NuxtChild />
</div>
</template>
<script>
export default {
async asyncData ({ route }) {
const asyncData = {}
await new Promise((resolve, reject) => {
setTimeout(() => {
asyncData.name = 'parent'
resolve()
}, 100)
})
return asyncData
}
}
</script>