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

Function load

packages/core/src/di/inject_async.ts:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68 let loadedPromise: Promise<InjectAsyncLoaderResult<T>> | null = null;
69 const load = () => {
70 if (!loadedPromise) {
71 loadedPromise = loader();
72 }
73 return loadedPromise;
74 };
75
76 if (options?.prefetch) {
77 options

Callers 2

injectAsyncFunction · 0.70
getCachedSourceFileFunction · 0.50

Calls 1

loaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…