📜  反应形式单选按钮 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:24.131000             🧑  作者: Mango

代码示例2
form: FormGroup;
  constructor(fb: FormBuilder) {
    this.name = 'Angular2'
    this.form = fb.group({
      gender: ['', Validators.required]
    });
  }