Skip to content

Commit

Permalink
refactor(router): Remove unused ANALYZE_FOR_ENTRY_COMPONENTS (#46942)
Browse files Browse the repository at this point in the history
`entryComponents` is a feature that is not used or necessary in Angular
anymore.

PR Close #46942
  • Loading branch information
atscott authored and AndrewKushnir committed Aug 1, 2022
1 parent 6fc52c5 commit 55febc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions packages/core/test/bundling/router/bundle.golden_symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{
"name": "ALLOW_MULTIPLE_PLATFORMS"
},
{
"name": "ANALYZE_FOR_ENTRY_COMPONENTS"
},
{
"name": "APP_BASE_HREF"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/router/src/router_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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},
];
}
Expand Down

0 comments on commit 55febc1

Please sign in to comment.