Nathan Hammond's libphonenumber ported to an angular filter
npm install angular-libphonenumber
| Info | Badges |
| ------------- | ------------- |
| Version | [![Bower version][bower-image]][bower-url] [![NPM version][npm-image]][npm-url] |
| License | [![Apache license][license-image]][license-url] |
| Testing | [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] |
| Quality | [![Dependencies status][dep-status-image]][dep-status-url] [![Code Climate][code-climate-image]][code-climate-url] |
country-code descriptor. It usesView a demo here
```
bower install --save angular-libphonenumber
You then must decide what version of libphonenumber you want. There are two included, and you must
include _one_ of them in your application before angular-libphonenumber:
- dist/libphonenumber.js - only includes the libphonenumber code needed for typeahead to work
- dist/libphonenumber.full.js - includes all libphonenumber functionality _including_ typeahead
`html`
Then include it in your angular application:
`javascript`
angular.module('myModule', ['cwill747.phonenumber']);
- You need to get the user's country code from somewhere. Where you do that is up to you (setting,
local storage, angular-translate, or just another input box):
`html`
- Then you just apply the input mask to any input box:
`html`
* 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 local dev dependencies: npm install while current directory is angular-libphonenumber repo#### Build
* Build the whole project:
gulp - this will run jshint, test, and build` targets
[bower-image]: https://img.shields.io/bower/v/angular-libphonenumber.svg?style=flat-square
[bower-url]: http://bower.io/search/?q=angular-libphonenumber
[npm-image]: https://img.shields.io/npm/v/angular-libphonenumber.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/angular-libphonenumber
[build-image]: http://img.shields.io/travis/cwill747/angular-libphonenumber.svg?style=flat-square
[build-url]: https://travis-ci.org/cwill747/angular-libphonenumber
[dep-status-image]: https://img.shields.io/david/cwill747/angular-libphonenumber.svg?style=flat-square
[dep-status-url]: https://david-dm.org/cwill747/angular-libphonenumber
[coverage-image]: https://img.shields.io/coveralls/cwill747/angular-libphonenumber.svg?style=flat-square
[coverage-url]: https://coveralls.io/r/cwill747/angular-libphonenumber?branch=master
[code-climate-image]: https://img.shields.io/codeclimate/github/cwill747/angular-libphonenumber.svg?style=flat-square
[code-climate-url]: https://codeclimate.com/github/cwill747/angular-libphonenumber
[license-image]: http://img.shields.io/badge/license-Apachev2-blue.svg?style=flat-square
[license-url]: http://www.apache.org/licenses/LICENSE-2.0