The key Property
Set the
keyproperty of internal<router-view>component
- Type:
StringorFunction
The key property is propagated into <router-view>, which is useful to make transitions inside a dynamic page and different route. Different keys result in rerendering of page components.
There are several ways to set the key. For more details, please refer to the nuxtChildKey prop in the nuxt component.
export default {
key(route) {
return route.fullPath
}
}
Contributors
Daniel Roe
Debbie O'Brien
Alexandre Chopin
Sébastien Chopin
Benjamin Canac
fgiraud
Sergey Bedritsky
Alba Silvente Fuentes
Alexander Lichter
Krutie Patel
pooya parsa
Pim
Ahad Birang
Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!
