Nuxt/examples/spa/pages/about.vue
2017-08-18 16:57:32 +02:00

17 lines
250 B
Vue

<template>
<div>
<p>Hi from {{ name }}</p>
<nuxt-link to="/">Home page</nuxt-link>
</div>
</template>
<script>
export default {
asyncData ({ isServer }) {
return {
name: (isServer ? 'server' : 'client')
}
}
}
</script>