0.1.2 • Published 12 months ago
ng-phone v0.1.2
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. |
|
<!-- | cssClass | `string` | `control-form` | Bootstrap input css class or your own custom one. -->