mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Kushnir
parent
6fc52c5cba
commit
55febc1691
@@ -2,9 +2,6 @@
|
||||
{
|
||||
"name": "ALLOW_MULTIPLE_PLATFORMS"
|
||||
},
|
||||
{
|
||||
"name": "ANALYZE_FOR_ENTRY_COMPONENTS"
|
||||
},
|
||||
{
|
||||
"name": "APP_BASE_HREF"
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user