Nested Pages
How to use the Nuxt Child component to create parent and child pages.
In this example:
pages/parent.vue contains the <NuxtChild> component. Everything on this page will be seen on both the parent and child pages.
pages/parent/index.vue contains text that will be replaced when the child links are clicked.
pages/parent/child.vue and pages/parent/child2.vue will be rendered as parent/child and parent/child2.
Learn more in the Features book in the Nuxt Components chapter.
Loading Sandbox...
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