MCPcopy Create free account
hub / github.com/angular/angular / constructor

Method constructor

packages/core/test/render3/reactivity_spec.ts:454–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452 @Component({})
453 class TestCmp {
454 constructor() {
455 effect((onCleanup) => onCleanup(() => (destroyed = true)));
456 }
457 }
458
459 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