Want to set phone-number to 10 digits, How can I do this using Angular js.
This is what I have tried:
Check this answer
Basically you can create a regex to fulfil your needs and then assign that pattern to your input field.
Or for a more direct approach:
More info @ angular docs here and here (built-in validators)