Skip to content
Loading
Radio Button in Angular 6 Nested Form not working  
  •   
  • "skills">  
  • class="form-group">  
  • class="col-sm-2 control-label" for="skillName" >Skill   
  • class="col-sm-4">  
  • "text" id="skillName" placeholder="Name" formControlName="skillName" >  
  •   
  • "text" placeholder="Experience in Years " formControlName="experienceInYears" >  
  •   
  •   
  •   
  • class="form-group">  
  • class="col-md-2 control-label">Proficiency  
  • class="col-md-8" >  
  • class="radio-inline">  
  • "proficiency" type="radio" value="'beginner'" formControlName="proficiency"> Beginner  
  •   
  • class="radio-inline">  
  • "proficiency" type="radio" value="Intermediate" formControlName="proficiency"> Intermediate  
  •   
  • class="radio-inline">  
  • "proficiency" type="radio" value="advanced" formControlName="proficiency"> Advanced  
  •   
  •   
  •   

  •   
  • class="panel-footer" >  
  • class="btn-toolbar">  
  • class="btn btn-primary" type="submit">Save  
  • class="btn btn-primary" type="button" (click)="onLoadDataClick()">Load Data  
  •   
  •   
  •   
  •   
  • "1">  
  •   
  •   
  • formGroup  
  •   
  •   
  • formControl (fullName)  
  •   
  •   
  •   
  • "padding: 10px" >  
  • touched : {{employeeForm.touched}}  

  •   
  • dirty : {{employeeForm.dirty}}  

  •   
  • valid : {{employeeForm.valid}}  

  •   
  • Form Values : {{employeeForm.value | json}}  
  •   
  • "padding: 10px">  
  • touched : {{employeeForm.get('fullName').touched}}  

  •   
  • dirty : {{employeeForm.get('fullName').dirty }}  

  •   
  • valid : {{employeeForm.get('fullName').valid }}  

  •   
  • Full Name Values : {{employeeForm.get('fullName').value }}  
  •   
  •   

  • Please suggest if you have any suggesstions,

    2 Replies

    Know the answer? Post it — somebody with the same question will find it here.