# ng-only-intl-phone

> A pure AngularJS (jQuery-free) international phone input directive.

Latest version **0.1.2** (published 2017-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-only-intl-phone
pnpm add ng-only-intl-phone
yarn add ng-only-intl-phone
bun add ng-only-intl-phone
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-02-26 |
| First published | 2017-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| Author | NeoNexus DeMortis |
| Maintainers | neonexus |
| Keywords | international, countries, angularjs, directive, phone |

## Links

- npm: https://www.npmjs.com/package/ng-only-intl-phone
- Repository: https://github.com/neonexus/ng-only-intl-phone
- Issues: https://github.com/neonexus/ng-only-intl-phone/issues
- npm.io page: https://npm.io/package/ng-only-intl-phone

## Dependencies (3)

- [angular](https://npm.io/package/angular.md) ^1.4.7
- [bc-countries](https://npm.io/package/bc-countries.md) ^2.0.0
- [bc-css-flags](https://npm.io/package/bc-css-flags.md) ^3.0.0

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2017-02-26
- 0.1.1 — 2017-02-26
- 0.1.0 — 2017-02-26

## README

# ng-only-intl-phone

## Installation

### Bower
```bash
bower install --save ng-only-intl-phone
```
```js
angular.module('myApp', ['ngIntlPhone'])
```

### NPM
```bash
npm install --save ng-only-intl-phone
```
```js
angular.module('myApp', [require('ng-only-intl-phone')])
```

### Other (not recommended)
Just download the [dist](https://github.com/neonexus/ng-only-intl-phone/tree/master/dist) folder.

## Usage
```html
<ng-intl-phone ng-model='theNumber' default-country='us' preferred-countries='us gb ca' is-valid='isValid'></ng-intl-phone>
```

```js
angular.module('myModule', ['ngIntlPhone', function(ngIntlPhone) {
  scope.formattedNumber = ngIntlPhone.format('966501234567');
  scope.isValid = ngIntlPhone.isValid(scope.formattedNumber);
}]);
```

Note that `ng-model` and `is-valid` are scope variables.

## Release

Build a new version:

```sh
gulp build
```

Update version in bower.json and package.json and commit:

```sh
git commit -a -m "Release 1.0.0"
```

Tag, sign and push:

```sh
git tag -s v1.0.0 -m "v1.0.0"
git push --tags
```

---
_Source: https://npm.io/package/ng-only-intl-phone · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
