refactor(core): Removed deprecated DebugNode.inject() (#10751)

BREAKING CHANGE: previously deprecated DebugNode#inject was removed, see deprecation notice for migration instructions.
This commit is contained in:
Chuck Jazdzewski 2016-08-12 15:57:23 -07:00 committed by vikerman
parent 79afcf0766
commit a235ae16ed
3 changed files with 1 additions and 9 deletions

View File

@ -48,13 +48,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); }
}
/**

View File

@ -656,7 +656,7 @@ export function main() {
var contentViewportDir =
conditionalComp.queryAllNodes(By.directive(ManualViewportDirective))[1]
.inject(ManualViewportDirective);
.injector.get(ManualViewportDirective);
contentViewportDir.show();

View File

@ -467,7 +467,6 @@ export declare class DebugNode {
};
source: string;
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
/** @deprecated */ inject(token: any): any;
}
/** @stable */