Nuxt/examples/dynamic-layouts/pages/about.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

20 lines
309 B
Vue

<template>
<div>
<p>Hi from {{ name }}</p>
<NuxtLink to="/">
Home page
</NuxtLink>
</div>
</template>
<script>
export default {
layout: ({ isMobile }) => isMobile ? 'mobile' : 'default',
asyncData ({ req }) {
return {
name: req ? 'server' : 'client'
}
}
}
</script>