Injection-Aware Lazy Loading for loadComponent and loadChildren in Angular

Angular v20.1.0 introduces injection-aware lazy loading for the router’s loadComponent
and loadChildren
functions. Now, when loading standalone components or child routes, Angular retains the correct DI context, meaning any route-level providers—including those inherited from parent routes—are available during the load.
This unlocks dynamic use cases such as feature-flag-driven components, role-based route loading, locale-themed layouts, A/B test variants, and more—where services injected at the route level can influence the exact component or module being loaded