I would like to markAsDirty all the controls inside of a FormGroup.
markAsDirty
FormGroup
For what it's worth, there's another way to do this without having to use Object.keys(...) magic:
for (const field in this.form.controls) { // 'field' is a string const control = this.form.get(field); // 'control' is a FormControl }