From 55febc1691cba5236b5f1bc51aaa5ad71087b320 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Fri, 8 Jul 2022 13:58:32 -0700 Subject: [PATCH] refactor(router): Remove unused ANALYZE_FOR_ENTRY_COMPONENTS (#46942) `entryComponents` is a feature that is not used or necessary in Angular anymore. PR Close #46942 --- packages/core/test/bundling/router/bundle.golden_symbols.json | 3 --- packages/router/src/router_module.ts | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/core/test/bundling/router/bundle.golden_symbols.json b/packages/core/test/bundling/router/bundle.golden_symbols.json index 0cd207d19da..b7a68fc8e66 100644 --- a/packages/core/test/bundling/router/bundle.golden_symbols.json +++ b/packages/core/test/bundling/router/bundle.golden_symbols.json @@ -2,9 +2,6 @@ { "name": "ALLOW_MULTIPLE_PLATFORMS" }, - { - "name": "ANALYZE_FOR_ENTRY_COMPONENTS" - }, { "name": "APP_BASE_HREF" }, diff --git a/packages/router/src/router_module.ts b/packages/router/src/router_module.ts index 6a3a1a7cdf5..b4b4c2f44e8 100644 --- a/packages/router/src/router_module.ts +++ b/packages/router/src/router_module.ts @@ -7,7 +7,7 @@ */ import {HashLocationStrategy, Location, LOCATION_INITIALIZED, LocationStrategy, PathLocationStrategy, ViewportScroller} from '@angular/common'; -import {ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, ComponentRef, ENVIRONMENT_INITIALIZER, inject, Inject, InjectFlags, InjectionToken, Injector, ModuleWithProviders, NgModule, NgProbeToken, Optional, Provider, SkipSelf, Type, ɵRuntimeError as RuntimeError} from '@angular/core'; +import {APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, ComponentRef, ENVIRONMENT_INITIALIZER, inject, Inject, InjectFlags, InjectionToken, Injector, ModuleWithProviders, NgModule, NgProbeToken, Optional, Provider, SkipSelf, Type, ɵRuntimeError as RuntimeError} from '@angular/core'; import {of, Subject} from 'rxjs'; import {filter, map, take} from 'rxjs/operators'; @@ -204,7 +204,6 @@ export function provideForRootGuard(router: Router): any { */ export function provideRoutes(routes: Routes): any { return [ - {provide: ANALYZE_FOR_ENTRY_COMPONENTS, multi: true, useValue: routes}, {provide: ROUTES, multi: true, useValue: routes}, ]; }