I have a reactive forms table in my angular app and i have 3 checkbox for each row. Present, Absent and Leave. They only have the same formControlName="status". They should only click one checkbox for row. The status are as follow:
Present = 1
Absent = 2
Leave = 3
How will be i able to do this? Please check this stackblitz code: CLICK HERE
initGroup() {
let rows = this.form.get('rows') as FormArray;
rows.push(this.fb.group({
name: [null, Validators.required],
status: [null, Validators.required]
}))
}