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

Method constructor

packages/forms/signals/test/web/reactive_fvc.spec.ts:1796–1803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1794 emitted: string[] = [];
1795
1796 constructor() {
1797 this.form.valueChanges.subscribe(() => this.emitted.push('form valueChanges'));
1798 this.form.statusChanges.subscribe(() => this.emitted.push('form statusChanges'));
1799 for (const [name, control] of Object.entries(this.form.controls)) {
1800 control.valueChanges.subscribe(() => this.emitted.push(`${name} valueChanges`));
1801 control.statusChanges.subscribe(() => this.emitted.push(`${name} statusChanges`));
1802 }
1803 }
1804 }
1805
1806 const fixture = act(() => TestBed.createComponent(TestCmp));

Callers

nothing calls this directly

Calls 3

subscribeMethod · 0.65
pushMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected