📅  最后修改于: 2022-03-11 14:48:21.004000             🧑  作者: Mango
form: FormGroup;
constructor(fb: FormBuilder) {
this.name = 'Angular2'
this.form = fb.group({
gender: ['', Validators.required]
});
}