I need assistance with a scenario where clicking on a button within a component triggers another click event on a specific checkbox located in a different div within the same component. Essentially, I want to programmatically simulate a click on the checkbox. Can anyone provide guidance on how to achieve this?
Button Code within Div for Direct Click Event:
<div>
<button (click)="toggleUserSelection()">{{text}}</button>
</div>
Checkbox Code:
<mat-checkbox [formControl]="xxxx">{{displayName}}</mat-checkbox>