ng-phone
v0.1.2
Published
Avoids UnhandledPromiseRejectionWarning and PromiseRejectionHandledWarning
Downloads
8
Maintainers
Readme
Installation
Install Dependencies
$ npm i ng-phone
$ npm install google-libphonenumber --save
$ ng add ngx-bootstrap
Install This Library
$ npm install ng-phone --save
Usage
Import
Add NgPhoneModule
to your module file:
imports: [NgPhoneModule];
Example
<ng-phoneCode></ng-phoneCode>
Options
| Options | Type | Default | Description |
| ------------------------ | ------------------------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| enablePlaceholder | boolean
| true
| Input placeholder text, which adapts to the country selected. |
| customPlaceholder | string
| None
| Custom string to be inserted as a placeholder.
| maxLength | number
| None
| Add character limit.
|