Nuxt/examples/spa/pages/about.vue

17 lines
250 B
Vue
Raw Normal View History

2017-08-18 13:44:43 +00:00
<template>
<div>
<p>Hi from {{ name }}</p>
<nuxt-link to="/">Home page</nuxt-link>
</div>
</template>
<script>
export default {
2017-08-18 14:57:32 +00:00
asyncData ({ isServer }) {
2017-08-18 13:44:43 +00:00
return {
2017-08-18 14:57:32 +00:00
name: (isServer ? 'server' : 'client')
2017-08-18 13:44:43 +00:00
}
}
}
</script>