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

18 lines
255 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',
2017-10-31 13:43:55 +00:00
asyncData({ req }) {
return {
2017-01-09 14:10:01 +00:00
name: req ? 'server' : 'client'
}
}
}
</script>