I am trying to patch a value so my input works like ng model
here's the code
this.purchaseOrderForm.patchValue({
itemForm: {
inputSubTotal: this.tempSellPrice.valueOf().toString()
}
});
but it doesn't work
this.purchaseOrderForm.at(i).patchValue({
itemForm: {
inputSubTotal: this.tempSellPrice.valueOf().toString()
}
});
doesn't work also, i = index count.
is there a way to update my form without saving it yet?