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