Nuxt/examples/hello-world/pages/about.vue
2018-12-12 10:01:49 +03:30

22 lines
314 B
Vue
Executable File

<template>
<div>
<p>Hi from {{ name }}</p>
<NLink to="/">
Home page
</NLink>
</div>
</template>
<script>
export default {
asyncData() {
return {
name: process.static ? 'static' : (process.server ? 'server' : 'client')
}
},
head: {
title: 'About page'
}
}
</script>