To create a brand new route structure, rather than a nested one, organize your folders like the example below.
The same structure can be found in the Nuxt.js Routing documentation example.
If you need examples of nested routes, the documentation has those available too.
In your specific scenario, to render a nested route within a <nuxt-child>
component, use the following folder structure:
|-pages/
|--| profile/
|-----| address.vue
|-----| index.vue
|--| profile.vue
Place the <nuxt-child>
tag inside the profile.vue
page. This configuration will ensure that profile/index.vue
is displayed when the user visits /profile
, and address.vue
is displayed when the user visits /profile/address
.