Answer the question
In order to leave comments, you need to log in
How to build multi-level (nested) routing in VUEJS?
There is a multi-level structure
District->Microdistricts->Streets->Houses
For example District has fields:
const routes = [
{path: '/', component: Home},
{path: '/rayon', component: Rayons,
children:[
{path: ':id-microrayon', component: Microrayon,
children:[
{path: ':id-street', component: Street}
]
}
]
}
];
Answer the question
In order to leave comments, you need to log in
Perhaps the jamb in the name of the dynamic parameter, ie. You will have a route if you set this URL: /rayon/45/11/33. Those. everything after the colon is treated as a dynamic parameter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question