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

14 lines
205 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) => {
2016-12-09 17:51:19 +00:00
setTimeout(() => resolve({ name: 'Nuxt.js' }), 10)
2016-11-07 01:34:58 +00:00
})
}
}
</script>