intl-tel-input-ng
v0.19.0
Published
[](https://github.com/mpalourdio/ng-http-loader/actions/workflows/main.yml) [.name: Setsnameandidattributes for the input. The default value isintl-tel-input-name.cssClass: The CSS class used to style the input component.labelCssClass: The CSS class used to style the label associated to the input.required: Sets therequired&&aria-requiredattributes for the input.[(E164PhoneNumber)]: Outputs the phone number in E164 format if valid.
See the intl-tel-input repository for more documentation.
Example:
The component must be declared between <form> tags !
<form #form="ngForm">
<intl-tel-input
[label]="'Please enter your phone number'"
[name]="'my-name'"
[cssClass]="'form-control'"
[labelCssClass]="'col-sm-2 col-form-label'"
[required]="true"
[options]="{
preferredCountries: ['ch'],
i18n: { ch: 'Suisse' },
onlyCountries: ['fr', 'ch']
}"
[(E164PhoneNumber)]="E164PhoneNumber"></intl-tel-input>
</form> 