From ee7caceec701e7504529119eb378827527326d38 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Fri, 29 Apr 2016 01:36:58 -0700 Subject: [PATCH] Revert "docs: deprecate `DynamicComponentLoader` and `DebugNode.inject`" This reverts commit a0b5964a63ab3680703adc336aab196444e9a43d. --- modules/angular2/src/core/debug/debug_node.ts | 5 ----- modules/angular2/src/core/linker/dynamic_component_loader.ts | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/angular2/src/core/debug/debug_node.ts b/modules/angular2/src/core/debug/debug_node.ts index f998b651c8..138b30266a 100644 --- a/modules/angular2/src/core/debug/debug_node.ts +++ b/modules/angular2/src/core/debug/debug_node.ts @@ -38,11 +38,6 @@ export class DebugNode { get source(): string { return isPresent(this._debugInfo) ? this._debugInfo.source : null; } - /** - * Use injector.get(token) instead. - * - * @deprecated - */ inject(token: any): any { return this.injector.get(token); } } diff --git a/modules/angular2/src/core/linker/dynamic_component_loader.ts b/modules/angular2/src/core/linker/dynamic_component_loader.ts index 5aa890645d..6b6014aafe 100644 --- a/modules/angular2/src/core/linker/dynamic_component_loader.ts +++ b/modules/angular2/src/core/linker/dynamic_component_loader.ts @@ -10,9 +10,7 @@ import {ComponentRef} from './component_factory'; import {ViewContainerRef} from './view_container_ref'; /** - * Use ComponentResolver and ViewContainerRef directly. - * - * @deprecated + * Service for instantiating a Component and attaching it to a View at a specified location. */ export abstract class DynamicComponentLoader { /**