mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
825d0e4c82
The vue-router component can have a 'key' property which means it's easier to configure transitions between routes with slugs. With this change in a layout template you can use ```html <nuxt :routerViewKey="routerViewKey" /> ``` And the following for example ```js computed: { routerViewKey () { if (this.$route.name === 'service') { return this.$route.name } else { return this.$route.fullPath } } } ``` This would implement the functionality that @myst729 mentioned here https://github.com/vuejs/vue-router/issues/474 for vue-router - some routes can just switch, but some you may want to transition as though it's a complete new page to an end-user This is a possible resolution to issue raised here https://github.com/nuxt/nuxt.js/issues/1021 |
||
---|---|---|
.. | ||
nuxt-child.js | ||
nuxt-error.vue | ||
nuxt-link.js | ||
nuxt-loading.vue | ||
nuxt.vue |