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

20 lines
265 B
Vue
Raw Normal View History

<template>
<div>
<p>Hi from {{ name }}</p>
<NuxtLink to="/">
Home page
</NuxtLink>
</div>
</template>
<script>
export default {
2016-12-24 00:55:46 +00:00
layout: 'dark',
2017-10-31 13:43:55 +00:00
asyncData({ req }) {
return {
2017-01-09 14:10:01 +00:00
name: req ? 'server' : 'client'
}
}
}
</script>