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

Method get

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

Source from the content-addressed store, hash-verified

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. */

Callers

nothing calls this directly

Calls 2

convertToBitFlagsFunction · 0.90
getOrCreateInjectableFunction · 0.85

Tested by

no test coverage detected