Nuxt/examples/vue-class-component/pages/index.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
328 B
Vue

<template>
<Child :env="env" />
</template>
<script>
import Vue from 'vue'
import Component from 'nuxt-class-component'
import Child from '@/components/Child'
export default
@Component({
components: { Child }
})
class App extends Vue {
asyncData ({ req }) {
return { env: req ? 'server' : 'client' }
}
}
</script>