Looking to implement nested routing for mypage/param1/1/param2/2 format in the URL. The first parameter is represented by 1 and the second one by 2. It's imperative that there are always two parameters, otherwise an error should be displayed. However, I'm encountering issues with this setup. Do you think I'm heading in the right direction?
{
path: 'param1/:param1',
component: PageNotFoundComponent,
children: [
{ path: 'param2/:param2', component: SomeComponent },
]
}