Nuxt/examples/custom-loading/pages/index.vue

27 lines
423 B
Vue
Raw Normal View History

2016-11-11 14:30:11 +00:00
<template>
<div class="container">
<p>Hello {{ name }}!</p>
2016-12-16 17:12:38 +00:00
<nuxt-link to="/about">Go to /about</nuxt-link>
2016-11-11 14:30:11 +00:00
</div>
</template>
<script>
export default {
data () {
return new Promise((resolve) => {
setTimeout(function () {
resolve({ name: 'world' })
}, 1000)
})
}
}
</script>
<style scoped>
.container {
font-size: 20px;
text-align: center;
padding-top: 100px;
}
</style>