Nuxt/examples/custom-loading/pages/index.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

29 lines
438 B
Vue

<template>
<div class="container">
<p>Hello {{ name }}!</p>
<NuxtLink to="/about">
Go to /about
</NuxtLink>
</div>
</template>
<script>
export default {
asyncData () {
return new Promise((resolve) => {
setTimeout(function () {
resolve({ name: 'world' })
}, 1000)
})
}
}
</script>
<style scoped>
.container {
font-size: 20px;
text-align: center;
padding-top: 100px;
}
</style>