Gathering detailed insights and metrics for ngx-mat-intl-tel-input
Gathering detailed insights and metrics for ngx-mat-intl-tel-input
Gathering detailed insights and metrics for ngx-mat-intl-tel-input
Gathering detailed insights and metrics for ngx-mat-intl-tel-input
ngx-mat-input-tel
An Angular Material package for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
ngx-mat-intl-tel-input-triparc
An Angular Material package for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
@vidalsasun/ngx-mat-intl-tel-input
ngx-mat-intl-tel-input-v16
An Angular Material package for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
npm install ngx-mat-intl-tel-input
Typescript
Module System
Node Version
NPM Version
TypeScript (72.09%)
HTML (11.65%)
SCSS (10.93%)
JavaScript (5.32%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
62 Stars
197 Commits
116 Forks
2 Watchers
11 Branches
10 Contributors
Updated on Jul 31, 2024
Latest Version
5.0.0
Package Id
ngx-mat-intl-tel-input@5.0.0
Unpacked Size
771.99 kB
Size
341.82 kB
File Count
31
NPM Version
8.10.0
Node Version
16.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
An Angular Material package for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.
Supports:
$ npm install libphonenumber-js --save
$ npm install ngx-mat-intl-tel-input --save
Add NgxMatIntlTelInputComponent
to your component file:
1imports: [NgxMatIntlTelInputComponent];
Refer to main app in this repository for working example.
1<form #f="ngForm" [formGroup]="phoneForm"> 2 <ngx-mat-intl-tel-input 3 [preferredCountries]="['us', 'gb']" 4 [enablePlaceholder]="true" 5 [enableSearch]="true" 6 name="phone" 7 describedBy="phoneInput" 8 formControlName="phone" 9 ></ngx-mat-intl-tel-input> 10</form>
1 2<form #f="ngForm" [formGroup]="phoneForm"> 3 <ngx-mat-intl-tel-input 4 [preferredCountries]="['us', 'gb']" 5 [enablePlaceholder]="true" 6 [enableSearch]="true" 7 name="phone" 8 (countryChanged)="yourComponentMethodToTreatyCountryChangedEvent($event)" // $event is a instance of current select Country 9 formControlName="phone"></ngx-mat-intl-tel-input> 10</form> 11
If you want to show the sample number for the country selected or errors , use mat-hint anf mat-error as
1<form #f="ngForm" [formGroup]="phoneForm"> 2 <ngx-mat-intl-tel-input 3 [preferredCountries]="['us', 'gb']" 4 [onlyCountries]="['us', 'gb', 'es']" 5 [enablePlaceholder]="true" 6 name="phone" 7 formControlName="phone" 8 #phone 9 ></ngx-mat-intl-tel-input> 10 <mat-hint>e.g. {{phone.selectedCountry.placeHolder}}</mat-hint> 11 <mat-error *ngIf="f.form.controls['phone']?.errors?.required" 12 >Required Field</mat-error 13 > 14 <mat-error *ngIf="f.form.controls['phone']?.errors?.validatePhoneNumber" 15 >Invalid Number</mat-error 16 > 17</form>
| Options | Type | Default | Description |
| ------------------ | ---------- | ----------- | ----------------------------------------------------------------------------------- | --- |
| preferredCountries | string[]
| []
| List of country abbreviations, which will appear at the top. |
| onlyCountries | string[]
| []
| List of manually selected country abbreviations, which will appear in the dropdown. | |
| inputPlaceholder | string
| undefined
| Placeholder for the input component. |
| enablePlaceholder | boolean
| true
| Input placeholder text, which adapts to the country selected. |
| enableSearch | boolean
| false
| Whether to display a search bar to help filter down the list of countries |
| format | string
| default
| Format of "as you type" input. Possible values: national, international, default |
| describedBy | string
| undefined
| Use aria-described by with the input field |
./projects/ngx-mat-intl-tel-input
./src/lib
with new functionality.$ npm run build_lib
$ npm run copy-files
$ npm run npm_pack
$ npm run package
After building and creating package, you can use it locally too.
In your project run:
$ npm install --save {{path to your local '*.tgz' package file}}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/10 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
49 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More