Nuxt/test/fixtures/basic/pages/async-props.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 {
data () {
return new Promise((resolve) => {
setTimeout(() => resolve({ name: 'Kobe Bryant' }), 10)
})
}
}
</script>