From a9ef8583596a35c422ea51d8a48552830696d836 Mon Sep 17 00:00:00 2001 From: Olivier Combe Date: Tue, 22 Aug 2017 17:35:50 +0200 Subject: [PATCH] refactor(router): remove deprecated `RouterOutlet` properties BREAKING CHANGE: `RouterOutlet` properties `locationInjector` and `locationFactoryResolver` have been removed as they were deprecated since v4. --- packages/router/src/directives/router_outlet.ts | 5 ----- tools/public_api_guard/router/index.d.ts | 2 -- 2 files changed, 7 deletions(-) diff --git a/packages/router/src/directives/router_outlet.ts b/packages/router/src/directives/router_outlet.ts index 1bf9a0ef2c..4e6420357b 100644 --- a/packages/router/src/directives/router_outlet.ts +++ b/packages/router/src/directives/router_outlet.ts @@ -72,11 +72,6 @@ export class RouterOutlet implements OnDestroy, OnInit { } } - /** @deprecated since v4 **/ - get locationInjector(): Injector { return this.location.injector; } - /** @deprecated since v4 **/ - get locationFactoryResolver(): ComponentFactoryResolver { return this.resolver; } - get isActivated(): boolean { return !!this.activated; } get component(): Object { diff --git a/tools/public_api_guard/router/index.d.ts b/tools/public_api_guard/router/index.d.ts index 7dd99781b4..0ade5f37ae 100644 --- a/tools/public_api_guard/router/index.d.ts +++ b/tools/public_api_guard/router/index.d.ts @@ -439,8 +439,6 @@ export declare class RouterOutlet implements OnDestroy, OnInit { readonly component: Object; deactivateEvents: EventEmitter; readonly isActivated: boolean; - /** @deprecated */ readonly locationFactoryResolver: ComponentFactoryResolver; - /** @deprecated */ readonly locationInjector: Injector; constructor(parentContexts: ChildrenOutletContexts, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string, changeDetector: ChangeDetectorRef); activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void; attach(ref: ComponentRef, activatedRoute: ActivatedRoute): void;