I have a simple input element in my form that requires a default initial value to be set.
<input type="number" name="interest_rate" [(ngModel)]="interest_rate">
In my code, I included
this.form.controls['interest_rate'].patchValue(this.assumptions.interest_rate*100);
However, I am encountering the following error:
Error: Error in :0:0 caused by: Cannot read property 'patchValue' of undefined