Can I get a guidance in implementing radio button functionality in checkbox using angular2 ? I tried with same name and ngModel, but not working
Here is my component.html
<form [formGroup]="conformityForm">
<table class="table table-bordered">
<thead>
<tr>
<th>Evaluation</th>
<th>Yes</th>
<th>No</th>
</tr>
</thead>
<tbody>
<tr>
<td>Do the staff have adequate qualifications for the tasks?</td>
<td>
<input type="checkbox" formControlName="IsAdequatequalificationsYes">
</td>
<td>
<input type="checkbox" formControlName="IsAdequatequalificationsNo">
</td>
</tr>
</tbody>
</table>
</form>
component.ts
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';
export class Test implements OnInit {
conformityForm: FormGroup;
constructor(private formBuilder: FormBuilder)
this.conformityForm = this.formBuilder.group({
'IsInConvenienceYes': [''],
'IsInConvenienceNo': ['']
});
}
}