Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/angular/angular
/ ngOnDestroy
Method
ngOnDestroy
packages/core/test/render3/reactive_safety_spec.ts:130–132 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
128
})
129
class
GuestCmp {
130
ngOnDestroy(): void {
131
expect(getActiveConsumer()).toBe(null);
132
}
133
}
134
135
const
fix = TestBed.createComponent(HostCmp);
Callers
nothing calls this directly
Calls
1
getActiveConsumer
Function · 0.90
Tested by
no test coverage detected