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
This commit is contained in:
Andrew Scott
2022-07-08 13:58:32 -07:00
committed by Andrew Kushnir
parent 6fc52c5cba
commit 55febc1691
2 changed files with 1 additions and 5 deletions
@@ -2,9 +2,6 @@
{
"name": "ALLOW_MULTIPLE_PLATFORMS"
},
{
"name": "ANALYZE_FOR_ENTRY_COMPONENTS"
},
{
"name": "APP_BASE_HREF"
},
+1 -2
View File
@@ -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},
];
}