skip to Main Content

Validation not working for checkbox in angular – Html

Validation not working for checkbox. When checkbox is not selected, form is getting submitted. Also not showing error. HTML Code <form [formGroup]="feedbackFormWithArray" (ngSubmit)="submitData()"> <label class="form-control-label"><span class="text-danger">*</span>Recommendation:</label> <div class="recommendation-div"> <div class="rec-div" *ngFor="let recommendation of recommendations"> <label class="container">{{recommendation.listTypeValueName}} <input formControlName="recommendation" type="checkbox" value="{{recommendation.listTypeValueId}}"…

VIEW QUESTION
Back To Top
Search