Answers for "angular reactive forms radio button set selected"

0

reactive forms radio button

<form [formGroup]="form">
   <label>
     <input type="radio" value="Male" formControlName="gender">
       <span>male</span>
   </label>
   <label>
     <input type="radio" value="Female" formControlName="gender">
       <span>female</span>
   </label>
</form>
Posted by: Guest on May-03-2020
0

radio button in reactive forms angular material

constructor(private fb: FormBuilder) { 
  this.myForm = this.fb.group({
    options: ['1']
  })
}
Posted by: Guest on April-21-2021

Code answers related to "angular reactive forms radio button set selected"

Browse Popular Code Answers by Language