I have an AngularForm which binds the formControlName to an input field that is of type number.
I would like to accept numbers and dots only. Unfortunately the HTML attribute tag number also accepts dashes. This is something that I would like to prevent. Is there another attribute that could work within the HTML, or is there a suitable regEx expression that would only allow numbers and dots?
HTML
<input name="myNumber" step="any" type="number" formControlName="myNumber">
Angular Form / TS
myForm = this.fb.group({
question_number: null,
});