
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
ngx-p-world-phone-input
Advanced tools
[](https://badge.fury.io/js/ngx-p-world-phone-input) [](https://www.npmjs.com/package/ngx-p-world-phone-input)
An Angular package designed to help international phone number inputting in angular applications.It uses PrimeNG (https://primeng.org/) components as base and FlagCDN (https://flagcdn.com/) as flag image provider. It helps validating inputted number as it clears out on invalid input.
Library/Framework | Angular | PrimeNG |
---|---|---|
ngx-p-world-phone-input | 16.2.0 | 16.2.0 |
# npm i ngx-p-world-phone-input
Import the WorldPhoneInputModule
from this package into your app.module or the desired module
import { WorldPhoneInputModule } from 'ngx-p-world-phone-input';
my-component.html
<ngx-world-phone-input
[(phone)]="modeledPhone.phone"
[(ddi)]="modeledPhone.ddi">
</ngx-world-phone-input>
my-component.ts
modeledPhone: any = {
ddi: "55",
phone: 21976905821
}
Name | Type | Default | Description |
---|---|---|---|
ddi | string | "55" | The ddi / phone code for the selected country. |
phone | any | null | The modeled phone number (without ddi) |
language | string | "pt-BR" | The language to use (currently supports only pt-BR and en-US) |
Name | Type | Description |
---|---|---|
ddiChange | EventEmitter | Fires when ddi selection changes |
phoneChange | EventEmitter | Fires when phoneNumber changes |
FlagCDN for flag package [https://flagcdn.com/]
@Webcat12345 for original idea / inspiration (ngx-int-tel-input)
FAQs
[](https://badge.fury.io/js/ngx-p-world-phone-input) [](https://www.npmjs.com/package/ngx-p-world-phone-input)
The npm package ngx-p-world-phone-input receives a total of 11 weekly downloads. As such, ngx-p-world-phone-input popularity was classified as not popular.
We found that ngx-p-world-phone-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.