Angular
- 1 ответ
- 0 вопросов
1
Вклад в тег
initItemRows() {
return new FormGroup({
name: new FormControl('Test ticket name'),
description: new FormControl('Test description'),
full_price: new FormControl(100),
booking: new FormControl()
});
}
addNewRow() {
const control = <FormArray>this.invoiceForm.get('itemRows');
control.push(this.initItemRows());
}