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

Method ngOnDestroy

packages/core/test/render3/reactive_safety_spec.ts:393–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391 @Injectable()
392 class Service {
393 ngOnDestroy(): void {
394 expect(getActiveConsumer()).toBe(null);
395 }
396 }
397 const injector = createEnvironmentInjector([Service], TestBed.inject(EnvironmentInjector));
398 injector.get(Service);

Callers

nothing calls this directly

Calls 1

getActiveConsumerFunction · 0.90

Tested by

no test coverage detected