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

Function assertNotDestroyed

packages/core/src/di/r3_injector.ts:688–695  ·  view source on GitHub ↗
(injector: R3Injector)

Source from the content-addressed store, hash-verified

686}
687
688export function assertNotDestroyed(injector: R3Injector): void {
689 if (injector.destroyed) {
690 throw new RuntimeError(
691 RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,
692 ngDevMode && 'Injector has already been destroyed.',
693 );
694 }
695}
696
697function makeRecord<T>(
698 factory: (() => T) | undefined,

Callers 5

runInInjectionContextFunction · 0.90
destroyMethod · 0.85
onDestroyMethod · 0.85
runInContextMethod · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected