Adding a numerical value to the controller:
this.myValue = Number(elem.toFixed(2));
Then placing it inside an input form:
<input class="my-input"
type="number"
value={{$ctrl.myValue}}
...
>
Although the value is correct and displayed as expected on the screen, there's a warning message in the console:
The specified value "{{$ctrl.myValue}}" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+.\d+|.\d+)([eE][-+]?\d+)?
Any suggestions on how to remove this warning?