Nuxt/examples/custom-layouts/pages/about.vue
Sébastien Chopin f8de9dbe0d Update examples
2017-01-09 15:10:29 +01:00

18 lines
251 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' : 'client'
}
}
}
</script>