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