MCPcopy
hub / github.com/angular/angular / ngOnDestroy

Method ngOnDestroy

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

Source from the content-addressed store, hash-verified

200 @Injectable()
201 class Service {
202 ngOnDestroy(): void {
203 expect(getActiveConsumer()).toBe(null);
204 }
205 }
206 const injector = createEnvironmentInjector([Service], TestBed.inject(EnvironmentInjector));
207 injector.get(Service);

Callers

nothing calls this directly

Calls 1

getActiveConsumerFunction · 0.90

Tested by

no test coverage detected