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

14 lines
204 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
<p>{{ name }}</p>
</template>
<script>
export default {
2017-10-31 13:26:19 +00:00
asyncData() {
2016-11-07 01:34:58 +00:00
return new Promise((resolve) => {
2016-12-09 17:51:19 +00:00
setTimeout(() => resolve({ name: 'Nuxt.js' }), 10)
2016-11-07 01:34:58 +00:00
})
}
}
</script>