mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
27 lines
427 B
Vue
27 lines
427 B
Vue
|
<template>
|
||
|
<div class="container">
|
||
|
<p>Hello {{ name }}!</p>
|
||
|
<router-link to="/about">Go to /about</router-link>
|
||
|
</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>
|