Nuxt/examples/pug/pages/about.vue

19 lines
293 B
Vue
Raw Normal View History

<template lang="pug">
div
p Hi from {{ name }}
NuxtLink(to="/") Home Page
</template>
<script>
export default {
asyncData () {
return {
name: process.static ? 'static' : (process.server ? 'server' : 'client')
}
},
head: {
title: 'About page'
}
}
</script>