Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ constructor
Method
constructor
packages/core/test/render3/reactivity_spec.ts:457–459 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
455
@Component({})
456
class
TestCmp {
457
constructor() {
458
effect((onCleanup) => onCleanup(() => (destroyed = true)));
459
}
460
}
461
462
const
fix = TestBed.createComponent(TestCmp);
Callers
nothing calls this directly
Calls
5
effect
Function · 0.90
destroy
Method · 0.65
update
Method · 0.65
trigger
Function · 0.50
push
Method · 0.45
Tested by
no test coverage detected