一种方式: this.invoiceForm = this.formBuilder.group({ control1: new FormControl('',[Validators.required,...]), control2: new FormControl('',[Validators.required,...]) }) Invoice对象里面应该包含多个 FormControl 属性。
一种方式:
Invoice
对象里面应该包含多个FormControl
属性。