Validating and formatting phone numbers is not always easy. Every country have their own way of formatting them and even validating can be a cumbersome task. Tel.js is an Angular module that takes care of this in 2 steps: (1) Add reference to the JavaScript and (2) load the module in your Angular app. Afterwards all your input[tel] fields we automatically validate and format all international phone numbers. Try it out at http://michaelkrog.github.io/tel.js |
Nyheder >