angular-libphonenumber - AngularJS input masks for phone numbers
angular-libphonenumber is an angular directive that can be used as an input mask.
By default, all numbers are formatted in US format, but the format can be set with
the country-code descriptor. It uses
nathanhammond/libphonenumber as a formatter
for phone number's, which calls
Google's libphonenumber
to format numbers as you type them.
Using Bower:
bower install --save angular-libphonenumber
Then include it in your angular application:
angular.module('myModule', ['cwill747.phonenumber']);If you are having any questions or issues getting things to work, you can:
- Ask a question in stackoverflow under the angular-libphonenumber tag.
Project's issue on GitHub should be used discuss bugs and features.
We welcome any contributions to the project. Please check the CONTRIBUTING.md for contribution guidelines.
Check out our contributors here
- Install Node.js and NPM (should come with)
- Install global dev dependencies:
npm install -g gulp karma - Install local dev dependencies:
npm installwhile current directory is angular-libphonenumber repo
- Build the whole project:
gulp- this will runjshint,test, andbuildtargets
- Bump up version number in
package.jsonor by running npm version - Commit the version change with the following message:
chore(release): [version number] - tag
- push changes and a tag (
git push --tags)