Validate phone number using angular js

前端 未结 9 544
情歌与酒
情歌与酒 2020-12-03 00:13

Want to set phone-number to 10 digits, How can I do this using Angular js.

This is what I have tried:



        
9条回答
  •  一个人的身影
    2020-12-03 00:34

    An even cleaner and more professional look I have found is to use AngularUI Mask. Very simple to implement and the mask can be customized for other inputs as well. Then a simple required validation is all you need.

    https://angular-ui.github.io/

提交回复
热议问题