MCPcopy 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

effectFunction · 0.90
destroyMethod · 0.65
updateMethod · 0.65
triggerFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected