Blocking the first number in a text field

Viewed 168

I have a text input binded to a variable that contains a 5 digits number. How can I block the first digit so only the other 4 are editable?

Currently I have this: ng-model="my_var" ng-pattern="/^\d{5}$/"

Please note that the value is two-way binded, which means I'm showing it and the user can edit /save it.

3 Answers
Related