{
path: 'admin',
// load standalone component
loadComponent: () => import('./feature/admin/admin.component').then(c => c.AdminComponent),
// Swap UserLoaderService to ExperiemntalUserLoaderService for /admin route
// This happen only for /admin route, Environment Injector Hierarchy
providers: [
{provide: UserLoaderService, useExisting: ExperimentalUserLoaderService}
]
}
Also you are able to use `Providers` in @Component, but it belongs to Node Injector Hierarchy.