I'm encountering a challenge with my Angular application where I have implemented multiple checkboxes within an options form. The issue arises when changes made to the checkboxes are not consistently displayed as expected. Below is the pertinent code snippet:
<form class="theme-form">
<div *ngFor="let contactType of contactTypeDataList" class="checkbox-theme">
<label [for]="contactType.Type" class="arrow-labe2">
<input class="form-control" [id]="contactType.TypeId" class="styled" type="checkbox"
[checked]="contactType.IsActive"
[value]="contactType.TypeId" (change)="onTypeCheckboxChange($event, contactType)">
{{ contactType.Type }}
</label>
</div>
</form>