How to set radio button value using Reactive form?
问题 Here is my component class where I try to set a form radio button value to 1: import { FormGroup, FormControl } from '@angular/forms'; export class myComponent implements OnInit{ pageForm: FormGroup; ngOnInit() { this.pageForm = new FormGroup({ 'gndr': new FormControl(1) }); } } but when the page loaded the Radio button is not set to Male and both options are blank: <div class="form-group"> <label for="gender">Gender</label> <div class="radio"> <label> <input type="radio" name="gndr"