loop through all controls of formGroup angular 10 code example
Example: loop through form controls angular
let form = fb.group({
data: ['']
})
Object.keys(form.controls).forEach(key => {
form.get(key).markAsDirty();
});
let form = fb.group({
data: ['']
})
Object.keys(form.controls).forEach(key => {
form.get(key).markAsDirty();
});