I'd like to format the value inside the textbox with a percent pipe, so that 0.42 shows up as 42%. I'd like to do this initially, as well as when the user changes the value.
public myFormGroup: FormGroup = new FormGroup({
myNumber: new FormControl(0.42)
});
<div [FormGroup]="myFormGroup">
<input formControlName="myNumber">
</div>
But I don't see a way to do this. Initial google searches produced results like this one: How to use pipes in Angular 5 reactive form input, which seems a bit overly complicated for such a simple use case.
Thanks.