The key property
Set the key property 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 re-rendering 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
}
}
Edit this page on GitHub
Updated at Tue, Jan 25, 2022
Hugo Torzuoli
Sylvain Marroufin
Sébastien Chopin
felipesuri
Kareem Dabbeet
tramplay
Daniel Roe
Clément Ollivier
verebelyicsaba
Adam
Nate Butler
Sandra Rodgers
Arpit Patidar
Matthew Kuehn
Steven DUBOIS
Travis Lindsey
syagawa
Maxime
かる
Al Power
Florent Delerue
José Manuel Casani Guerra
Unai Mengual
kazuya kawaguchi
Michael Lynch
Tomachi
pooya parsa
Shek Evgeniy
Meir Roth
Brett
Adam Miedema
Thomas Bnt
Kazuki Furukawa
Anthony Ruelle
Christophe Carvalho Vilas-Boas
Roman Harmyder
dianhenglau
Michael Gallagher
Jérôme Pott
Bettad