X Tutup
Skip to content

Commit ee7cace

Browse files
committed
Revert "docs: deprecate DynamicComponentLoader and DebugNode.inject"
This reverts commit a0b5964.
1 parent a0b5964 commit ee7cace

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

modules/angular2/src/core/debug/debug_node.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ export class DebugNode {
3838

3939
get source(): string { return isPresent(this._debugInfo) ? this._debugInfo.source : null; }
4040

41-
/**
42-
* Use injector.get(token) instead.
43-
*
44-
* @deprecated
45-
*/
4641
inject(token: any): any { return this.injector.get(token); }
4742
}
4843

modules/angular2/src/core/linker/dynamic_component_loader.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import {ComponentRef} from './component_factory';
1010
import {ViewContainerRef} from './view_container_ref';
1111

1212
/**
13-
* Use ComponentResolver and ViewContainerRef directly.
14-
*
15-
* @deprecated
13+
* Service for instantiating a Component and attaching it to a View at a specified location.
1614
*/
1715
export abstract class DynamicComponentLoader {
1816
/**

0 commit comments

Comments
 (0)
X Tutup