skip to Main Content

Html – How to add validations to a radio button in angular

This is my form in angular. hotel.component.html: <div class="container-sm"> <div class="bg-light jumbotron text-center"> <h2>Hotel</h2> </div> <form [formGroup]="form" (submit)="onSubmit()" class="mb-3"> <div class="col"> <label class="form-label fw-bold">Ammenities:</label> <div class="d-flex"> <div class="form-check me-4"> <label class="form-check-label"><input class="form-check-input" type="radio" name="option" value="Pool" formControlName="option"> Pool </label> </div> <div…

VIEW QUESTION
Back To Top
Search