Skip to content

Commit d1c4a94

Browse files
ocombemhevery
authored andcommitted
refactor(router): remove deprecated RouterOutlet properties (#18781)
BREAKING CHANGE: `RouterOutlet` properties `locationInjector` and `locationFactoryResolver` have been removed as they were deprecated since v4. PR Close #18781
1 parent d76761b commit d1c4a94

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

packages/router/src/directives/router_outlet.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ export class RouterOutlet implements OnDestroy, OnInit {
7272
}
7373
}
7474

75-
/** @deprecated since v4 **/
76-
get locationInjector(): Injector { return this.location.injector; }
77-
/** @deprecated since v4 **/
78-
get locationFactoryResolver(): ComponentFactoryResolver { return this.resolver; }
79-
8075
get isActivated(): boolean { return !!this.activated; }
8176

8277
get component(): Object {

tools/public_api_guard/router/router.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,6 @@ export declare class RouterOutlet implements OnDestroy, OnInit {
409409
readonly component: Object;
410410
deactivateEvents: EventEmitter<any>;
411411
readonly isActivated: boolean;
412-
/** @deprecated */ readonly locationFactoryResolver: ComponentFactoryResolver;
413-
/** @deprecated */ readonly locationInjector: Injector;
414412
constructor(parentContexts: ChildrenOutletContexts, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string, changeDetector: ChangeDetectorRef);
415413
activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
416414
attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute): void;

0 commit comments

Comments
 (0)