The key property
Set the key
property of internal <router-view>
component
-
Type:
String
orFunction
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 Fri, Dec 23, 2022
Vinícius Alves
Kareem Dabbeet
Clément Ollivier
Valentín Costa
Ryan Skinner
Daniel Roe
Alex Hirzel
Ajeet Chaulagain
René Eschke
Sébastien Chopin
Nico Devs
Muhammad
Nazaré da Piedade
Naoki Hamada
Tom
Yann Aufray
Anthony Chu
Nuzhat Minhaz
Lucas Portet
Richard Schloss
Xanzhu
bpy
Antony Konstantinidis
Hibariya
Jose Seabra
Eze
Florian LEFEBVRE
Lucas
Julien SEIXAS
Hugo
Sylvain Marroufin
Spencer Cooley
Piotr Zatorski
Vladimir Semenov
Harry Allen
kazuya kawaguchi
Unai Mengual
Hyunseung Lee
Alexandre Chopin
pooya parsa
Nick Medrano
Mosaab Emam
Iljs Путлер Капут
Heitor Ramon Ribeiro
Nero
Yoon Han
Ikko Ashimine
FamCodings
Ayouli
F. Hinkelmann
felipesuri
Christophe Carvalho Vilas-Boas
Leoš Literák
Trizotti
Marcello Bachechi
Rodolphe
Thomas Underwood
Shek Evgeniy
Lukasz Formela