Nuxt/examples/custom-layouts/pages/about.vue

18 lines
252 B
Vue
Raw Normal View History

<template>
<div>
<p>Hi from {{ name }}</p>
2016-12-16 17:12:38 +00:00
<nuxt-link to="/">Home page</nuxt-link>
</div>
</template>
<script>
export default {
2016-12-24 00:55:46 +00:00
layout: 'dark',
data ({ req }) {
return {
2016-12-24 13:15:24 +00:00
name: req ? 'server' : 'client2'
}
}
}
</script>