Consider the following picture
The above is a text field, that limit the user input to the number only.
For example
$x.xx
only x
is allow to change, while .
and $
is not allowed to change.
I was thinking of having 3 ng-models that control each digit. But input box element doesn't play nicely with positioning 3 three separate elements, while allowing user to edit.
Here are the requirements.
1. The user can directly input in the text box
2. Only number can be entered
3. only the number position can be changed.
Is there an easy way to do this via angular?