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:460–462 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
458
@Component({})
459
class
TestCmp {
460
constructor() {
461
effect((onCleanup) => onCleanup(() => (destroyed = true)));
462
}
463
}
464
465
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