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:

committed by
vikerman

parent
79afcf0766
commit
a235ae16ed
@ -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); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -656,7 +656,7 @@ export function main() {
|
||||
|
||||
var contentViewportDir =
|
||||
conditionalComp.queryAllNodes(By.directive(ManualViewportDirective))[1]
|
||||
.inject(ManualViewportDirective);
|
||||
.injector.get(ManualViewportDirective);
|
||||
|
||||
contentViewportDir.show();
|
||||
|
||||
|
Reference in New Issue
Block a user