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

Method get

packages/core/src/render3/di.ts:902–910  ·  view source on GitHub ↗
(token: any, notFoundValue?: any, flags?: InternalInjectFlags | InjectOptions)

Source from the content-addressed store, hash-verified

900 ) {}
901
902 get(token: any, notFoundValue?: any, flags?: InternalInjectFlags | InjectOptions): any {
903 return getOrCreateInjectable(
904 this._tNode,
905 this._lView,
906 token,
907 convertToBitFlags(flags),
908 notFoundValue,
909 );
910 }
911}
912
913/** Creates a `NodeInjector` for the current node. */

Callers

nothing calls this directly

Calls 2

convertToBitFlagsFunction · 0.90
getOrCreateInjectableFunction · 0.85

Tested by

no test coverage detected