MCPcopy Create free account
hub / github.com/angular/angular / NodeInjector

Class NodeInjector

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected