I use the following pattern for ng-pattern-restrict (as an example)
"^[+\-]?([1-3])*$"
It is applied to a input type=number field. When using ng-pattern-restrict, I am not able to start typing numbers with leading + or - signs. But I am in fact able to first type "2", and then insert a "-" before the "2".
For some other reasons I cannot use an input type=text field.
regards
Andreas
I use the following pattern for ng-pattern-restrict (as an example)
"^[+\-]?([1-3])*$"It is applied to a input type=number field. When using ng-pattern-restrict, I am not able to start typing numbers with leading + or - signs. But I am in fact able to first type "2", and then insert a "-" before the "2".
For some other reasons I cannot use an input type=text field.
regards
Andreas