angular loop through form controls 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();
});