I want to add that whenRoute optional parameter to data inside the Route type, how do I do it without modifying angular types file directly ?
const routes: Routes = [
{
path: 'pages',
loadChildren: () => import('./pages/pages.module').then(m => m.PagesModule),
data: { whenRoute: '/test'}
}
]