I have a checkbox component in a loop that makes a call to the controller to see if it's checked on initial load. The list that it's looping through is only three items long but the function is being called 24 times.
HTML :
<div class="MhSearchForm__Checkboxes">
<div *ngFor="let propertyStatus of propertyStatuses" class="ml-3">
<app-mh-check-box [option]="propertyStatus" [checked]="isChecked(propertyStatus)" (action)="statusSelected($event)"></app-mh-check-box>
</div>
</div>
JS:
isChecked(status) {
console.log(status);
}