I am working with an Angular element that involves a checkbox.
<mat-checkbox class="btn-block"
labelPosition="before"
(change)="showOptions($event)"
(click)="makeJSON($event.checked,i,j,k)">
</mat-checkbox>
The onchange event is currently performing a different task related to checkout status, but I need to obtain the checkbox status (checked or unchecked) on the click event instead.
I have attempted to inspect the object generated by click, but it does not contain information about the clicked object. How can I determine whether the checkbox is checked or unchecked in this scenario?