Nuxt/examples/spa/pages/about.vue

19 lines
254 B
Vue
Raw Normal View History

2017-08-18 13:44:43 +00:00
<template>
<div>
<p>Hi from {{ name }}</p>
<NuxtLink to="/">
Home page
</NuxtLink>
2017-08-18 13:44:43 +00:00
</div>
</template>
<script>
export default {
asyncData () {
2017-08-18 13:44:43 +00:00
return {
name: (process.server ? 'server' : 'client')
2017-08-18 13:44:43 +00:00
}
}
}
</script>