If I use folder-based routing, i have to write
'register/index': {
id: '/masuk',
en: '/login'
}
Why not just write the name of folder without index as same as for file-based routing,
'register': {
id: '/masuk',
en: '/login'
}
I think this is already working with the right folder structure.
pages/
โโโ register.vue
โโโ register/
โ โโโ index.vue
โ โโโ foobar.vue
โ โโโ bazfoo.vue
Use the register.vue component to always display the child:
<template>
<nuxt-child/>
</template>
Thanks, it worked!
Most helpful comment
I think this is already working with the right folder structure.
Use the
register.vuecomponent to always display the child: