サービスの応答から動的FormGroup
とFormArray
を作成しています。入力のいずれかに値がある場合はフォーム配列を検証したいと考えていました。あなたはこのようなものを使用でき動的フォームの配列の検証角2
this.billingForm = this._fb.group({
itemRows: this._fb.array([this.initItemRows()])
});
initItemRows() {
return this._fb.group({
Id: '',
orgName: '',
billing: this._fb.array([]),
payment: this._fb.array([])
});
}
あなたが検証したいフォームの配列? – Crappy
請求と支払いの両方の配列 – Muthu