MCPcopy Index your code
hub / github.com/angular/angular / NodeInjector

Class NodeInjector

packages/core/src/render3/di.ts:893–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891}
892
893export class NodeInjector implements Injector {
894 constructor(
895 private _tNode: TElementNode | TContainerNode | TElementContainerNode | null,
896 private _lView: LView,
897 ) {}
898
899 get(token: any, notFoundValue?: any, flags?: InternalInjectFlags | InjectOptions): any {
900 return getOrCreateInjectable(
901 this._tNode,
902 this._lView,
903 token,
904 convertToBitFlags(flags),
905 notFoundValue,
906 );
907 }
908}
909
910/** Creates a `NodeInjector` for the current node. */
911export function createNodeInjector(): Injector {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…