MCPcopy 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

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

Tested by

no test coverage detected