I do not understand how to create nested child routes in Nuxt3.
I have a parent file:
pages/index.vue
<template>
<div>
<h1>The home page</h1>
<AppFilter @picked-status="(e) => (status = e)" />
<NuxtPage />
</div>
</template>
<script setup>
const status = ref('one');
</script>
and then children like so:
pages/one/index.vue
, pages/two/index.vue
, and pages/three/index.vue
.
<template>
<h1>Child one</h1>
</template>
The parent file contains radio button navigation that when pressed, should show the relevant child component below. If "Child One" is pressed, I expect to see the pages/one.index.vue
component load below the navigation.
but, this does not work...
Perhaps there is a better way to structure the app for my use-case?
Here's my code with a minimally reproduction stackblitz editor here: https://stackblitz.com/edit/nuxt-starter-dmx5zu?file=pages/index.vue
Thank you for any help!