title: Checking which radio buttons are not checked in angular2/ionic2
body: <p>Am building an application and i would like to check which radio buttons are not checked in a form </p>
  
  <p>This is my code</p>
  
  <pre><code>&lt;form [formGroup]="inspectionform" style="padding: 20px"&gt;
  
  &lt;ion-card *ngFor='let checklists of inspectionform.controls["inputfileds"]["controls"] ;let i=index'&gt;
  
   &lt;ion-row radio-group (ionChange)="onChange($event)"&gt;
       &lt;ion-col width-30&gt;
         &lt;ion-item&gt;
             &lt;ion-label&gt;Yes&lt;/ion-label&gt;
             &lt;ion-radio id={{i}}  value='{{checklists.controls["radiovalue"].value}}-yes'  &gt;&lt;/ion-radio&gt;
         &lt;/ion-item&gt;
       &lt;/ion-col&gt;
  
  
       &lt;ion-col width-30 style="text-align:right; margin:auto"&gt;
  
           &lt;ion-item  style="text-align:left"&gt;
               &lt;ion-label&gt;No&lt;/ion-label&gt;
                &lt;ion-radio id={{i}} value='{{checklists.controls["radiovalue"].value}}-no'&gt;&lt;/ion-radio&gt;
  
         &lt;/ion-item&gt;
  
       &lt;/ion-col&gt;
  
   &lt;/ion-row&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;/form&gt;
  </code></pre>
  
  <p>Then i have a form builder code as </p>
  
  <pre><code>let inspectionform: FormGroup;
        let checkinputs: FormArray = new FormArray([]);
        for (let i = 0; i &lt; this.checklists.length; i++) {
          checkinputs.push(
            new FormGroup({
              description:new FormControl(this.checklists[i].item),
              input: new FormControl(''),
              radiovalue: new FormControl(this.checklists[i].id),
  
            })
          )
        }
  
        this.inspectionform = this._formBuilder.group({
          inputfileds: this._formBuilder.array(checkinputs.controls)
        })
  </code></pre>
  
  <p>Now on the submit on the form i would like to check the radio buttons which are not checked but i havent found a way yet. How do i go about it</p>
  
  <p>So something like</p>
  
  <pre><code>onSubmit(){
    console.log("these radio buttons with id's are not checked")
   }
  </code></pre>
  
  <p>The id of the radio buttons is the value of index</p>