I was looking a way to make my static blog development more faster using vue-router, but I found a problem linking the children pages with the parent route.
const routes = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/about', name: 'About', component: About,
children: [
{
path: '/test', name: 'How test children link', component: prova }
]
}
]
If I try to go on localhost/about/test address Vue can't find the page, but I can reach it if I go directly to localhost/test.
If I change the children path to
path: '/about/test', name: 'How test children link', component: prova }
It works, but, I don't understand the utility of the child route.
What I don't understand about children route?