Im a Angular newbie. There are three check boxes in my component. When the checked status changes in each one, I need to get the checked status of all three checkboxes.
<div class="mb-15 p-0 ">
<div class="col-2 p-0 font-700 font-12">
<mat-checkbox (change)="onChange1($event)">
</mat-checkbox>
</div>
</div>
<div class="mb-15 p-0 ">
<div class="col-2 p-0 font-700 font-12">
<mat-checkbox (change)="onChange2($event)">
</mat-checkbox>
</div>
</div>
<div class="mb-15 p-0 ">
<div class="col-2 p-0 font-700 font-12">
<mat-checkbox (change)="onChange3($event)">
</mat-checkbox>
</div>
</div>
Depending on the check box statuses, have to do a small logic inside my method and send a POST call to the WEB API.
What's the best way to capture all three checkbox statuses on any single checkbox status change? Appreciate some help on this.