Avoids UnhandledPromiseRejectionWarning and PromiseRejectionHandledWarning
npm install ng-phone$ npm i ng-phone
$ npm install google-libphonenumber --save
$ ng add ngx-bootstrap
$ npm install ng-phone --save
NgPhoneModule to your module file:
javascript
imports: [NgPhoneModule];
`
Example
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.
|
|