Nuxt/test/fixtures/basic/pages/async-data.vue
2017-10-31 14:26:19 +01:00

14 lines
204 B
Vue
Executable File

<template>
<p>{{ name }}</p>
</template>
<script>
export default {
asyncData() {
return new Promise((resolve) => {
setTimeout(() => resolve({ name: 'Nuxt.js' }), 10)
})
}
}
</script>