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

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

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