Nuxt/test/fixtures/basic/pages/refresh-page-data.vue
Sébastien Chopin 09878cd6dc
feat(vue-app): add $nuxt.refresh() (#6194)
* feat(vue-app): add $nuxt.refreshPageData()

* hotifx: lint

* chore: use getMatchedComponentsInstance util

* fix: rename to refreshPage

* fix: rename to refresh

* feat: add $nuxt.$context and handle error

* feat: set $nuxt.context

* hotfix: test
2019-08-07 15:12:02 +02:00

16 lines
222 B
Vue

<template>
<h1>
Hello from {{ name }}
</h1>
</template>
<script>
export default {
asyncData () {
return {
name: process.static ? 'static' : (process.server ? 'server' : 'client')
}
}
}
</script>