Can't bind to 'rxwebform' since it isn't a known property of 'form'
Guys its not working here also.
var docsControls = this.contractForm.controls["TenantContractDocuments"] as FormArray;
docsControls.clear();
docsControls = new FormArray([]);
this.contractForm.controls["TenantContractDocuments"] = <RxFormArray> docsControls;
documentsArray.forEach((element: DocumentModel) => {
let docGroup = this.formBuilder.formGroup(DocumentSubmission);
let document = element as DocumentSubmission;
docGroup.patchValue(document);
docsControls.push(docGroup);
});
I don't know why when I try to get the this.contractForm.modelInstance
under TenantContractDocuments
I find there is an array but without any values
modelInstance
property to access the value of model object it will bind the value if there exist a value assigned to the particular property, for more clearity have a look at this stackblitz
modelInstance
and paste the model to my API
docsControls
but the values do not reflect, despite I already updating it through patchValue
https://stackblitz.com/edit/angular-59jxvx?file=src/app/min-date-conditional-expression.component.ts
I am trying to apply a minimum date validation