In the route below.... I really need resolver in the root path '' to run first. But if I do a direct paste /admin the root path gets skipped. Is there a way to make the root path resolver run and process in the root path first? The userPermissionsResolver consumes a api which the AdminGuard uses to determine permissions from that data.
{
path: '',
canActivate: [OktaAuthGuard],
resolve: { permissions: UserPermissionsResolver },
children: [
{ path: '', component: SidenavComponent, outlet: 'sidenav' },
{ path: '', component: HomeComponent },
],
},
{
path: 'admin',
canActivate: [OktaAuthGuard],
canActivateChild: [AdminGuard],
loadChildren: () => import('../app/modules/admin/admin.module').then(m => m.AdminModule),
},