Routes
Get started with Routing in the backoffice.
Routing
Building routing
@state()
_routes: UmbRoute[] = [
{
// Adding :personId as a parameter
path: 'person/:personId',
component: () => import('./person.element.js'),
setup: (_component, info) => {
console.log('personId:',info.match.params.personId);
},
},
{
path: 'people',
component: () => import('./people.element.js'),
setup: (_component, info) => {
console.log('view-route-info',info);
},
},
{
path: '',
redirectTo: 'people',
},
];Last updated
Was this helpful?