Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ ngOnDestroy
Method
ngOnDestroy
packages/core/test/render3/reactive_safety_spec.ts:136–138 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
134
})
135
class
GuestCmp {
136
ngOnDestroy(): void {
137
expect(getActiveConsumer()).toBe(null);
138
}
139
}
140
141
const
fix = TestBed.createComponent(HostCmp);
Callers
nothing calls this directly
Calls
1
getActiveConsumer
Function · 0.90
Tested by
no test coverage detected