| 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)); |