Nuxt/examples/custom-layouts/pages/about.vue
2016-12-24 18:00:56 +01:00

18 lines
252 B
Vue

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