Nuxt/test/fixtures/basic/pages/async-data.vue
2018-02-27 00:18:36 +03:30

14 lines
204 B
Vue

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