Below is an input field that I want to always display the input value with 2 decimal places. For example, if I input 1, it should show as 1.00 in the input field. How can this be achieved using formControl since ngModel is not being used? Thank you.
I attempted to use mask="separator.2 but it did not work. Any ideas or help would be appreciated.
Click here for image description
#html code
<mat-form-field appearance="fill">
<mat-label>Acres</mat-label>
<input mask="separator.2" thousandSeparator="," matInput formControlName="acres" placeholder="">
</mat-form-field>
#ts code
private _createModelForm(): FormGroup {
return this.formBuilder.group({
acres: this.model.acres
});
}