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