I am having trouble finding out how to mark all form\'s fields as touched. The main problem is that if I do not touch fields and try to submit form - validation error in not
as per @masterwork
typescript code for the angular version 8
private markFormGroupTouched(formGroup: FormGroup) { (Object as any).values(formGroup.controls).forEach(control => { control.markAsTouched(); if (control.controls) { this.markFormGroupTouched(control); } }); }