Answer the question
In order to leave comments, you need to log in
Why doesn't router handle nested route component?
If I specify routes in such a structure (everything in the root), then everything works.
[
{
path: '/hello',
name: 'hello',
component: Hello,
}, {
path: '/hello/test1',
name: 'hello-test1',
component: HelloTest1
}, {
path: '/hello/test2',
name: 'hello-test2',
component: HelloTest2
}
]
[
{
path: '/hello',
name: 'hello',
component: Hello,
children: [
{
path: 'test1',
name: 'hello-test1',
component: HelloTest1
}, {
path: 'test2',
name: 'hello-test2',
component: HelloTest2
}
]
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question