MCPcopy
hub / github.com/angular/angular / runPlatformInitializers

Function runPlatformInitializers

packages/core/src/platform/platform.ts:222–227  ·  view source on GitHub ↗
(injector: Injector)

Source from the content-addressed store, hash-verified

220}
221
222function runPlatformInitializers(injector: Injector): void {
223 const inits = injector.get(PLATFORM_INITIALIZER, null);
224 runInInjectionContext(injector, () => {
225 inits?.forEach((init) => init());
226 });
227}

Callers 2

createPlatformFunction · 0.85

Calls 4

runInInjectionContextFunction · 0.90
getMethod · 0.65
initFunction · 0.50
forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…