I need help with implementing a validation that ensures "at least one of the dynamic mat-checkboxes is selected" in my HTML code:
<div class="form-check" *ngFor="let data of pointsDepart; let i=index" [ngClass]="i == 1 ? 'marginTop': ''">
<mat-checkbox color="primary" formControlName="pointDepart" ngDefaultControl>{{data}}</mat-checkbox>
</div>
Can anyone guide me on how to implement this validator? Your assistance would be greatly appreciated. Thank you.