Angular2 ReactiveFormsControl: how to bind radio buttons?
问题 I'm using ReactiveFormsModule of Angular2 to create a component that contains a form. Here is my code: foo.component.ts constructor(fb: FormBuilder) { this.myForm = fb.group({ 'name': ['', Validators.required], 'surname': ['', Validators.required], 'gender': [] }); } foo.component.html <div class="two fields"> <div class="four wide field"> <label>Name*</label> <input type="text" [formControl]="myForm.controls.name"/> </div> <div class="four wide field"> <label>Surname*</label> <input type=