Nuxt/examples/hello-world/pages/about.vue
2016-12-24 14:15:24 +01:00

17 lines
233 B
Vue
Executable File

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