Nuxt/examples/hello-world/pages/about.vue

17 lines
238 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
2016-12-24 13:15:24 +00:00
<div>
<p>Hi from {{ name }}</p>
<nuxt-link to="/">Home page</nuxt-link>
</div>
2016-11-07 01:34:58 +00:00
</template>
<script>
export default {
2017-02-28 14:17:49 +00:00
asyncData ({ req }) {
return {
name: req ? 'server' : 'client'
}
}
}
</script>