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:
parent
79afcf0766
commit
a235ae16ed
|
@ -48,13 +48,6 @@ export class DebugNode {
|
||||||
}
|
}
|
||||||
|
|
||||||
get source(): string { return isPresent(this._debugInfo) ? this._debugInfo.source : null; }
|
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 =
|
var contentViewportDir =
|
||||||
conditionalComp.queryAllNodes(By.directive(ManualViewportDirective))[1]
|
conditionalComp.queryAllNodes(By.directive(ManualViewportDirective))[1]
|
||||||
.inject(ManualViewportDirective);
|
.injector.get(ManualViewportDirective);
|
||||||
|
|
||||||
contentViewportDir.show();
|
contentViewportDir.show();
|
||||||
|
|
||||||
|
|
|
@ -467,7 +467,6 @@ export declare class DebugNode {
|
||||||
};
|
};
|
||||||
source: string;
|
source: string;
|
||||||
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
|
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
|
||||||
/** @deprecated */ inject(token: any): any;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
|
|
Loading…
Reference in New Issue