Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - mpalourdio/intl-tel-input-ng: :telephone: Angular module for intl-tel-input integration (https://github.com/jackocnr/intl-tel-input)
:telephone: Angular module for intl-tel-input integration (https://github.com/jackocnr/intl-tel-input) - mpalourdio/intl-tel-input-ng
Visit SiteGitHub - mpalourdio/intl-tel-input-ng: :telephone: Angular module for intl-tel-input integration (https://github.com/jackocnr/intl-tel-input)
:telephone: Angular module for intl-tel-input integration (https://github.com/jackocnr/intl-tel-input) - mpalourdio/intl-tel-input-ng
Powered by 0x5a.live 💗
intl-tel-input-ng
Changelog
Contributing
Use the fork, Luke. PR without tests will likely not be merged.
What is it ?
It's an angular standalone component to easily integrate intl-tel-input.
Installation
To install this library, run:
# install intl-tel-input
$ npm install intl-tel-input --save / yarn add intl-tel-input
# install this module
$ npm install intl-tel-input-ng --save / yarn add intl-tel-input-ng
- Add
node_modules/intl-tel-input/build/js/utils.js
to thescripts
section in yourangular.json
. - Add
node_modules/intl-tel-input/build/css/intlTelInput.css
to thestyles
section in yourangular.json
. - Import
IntlTelInputNgModule.forRoot()
in your main application module.
Options
options
: An object wrapping theintl-tel-input
options.label
: If specified, will generate alabel
for the input (if the name option is set too).name
: Setsname
andid
attributes 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-required
attributes 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>
Angular Resources
are all listed below.
Learn how to build apps with modern reactive and declarative code
resource
~/modernangular.com
resource
Ultimate Angular™ - Learn Everything You Need To Master Angular
resource
~/ultimatecourses.com
resource
angular | Software Development » Web Development » Javascript | Gumroad
resource
~/gumroad.com
resource
GitHub - Jaspero/ng-slider: A light slider with no external dependencies
resource
~/github.com
resource
AG Grid: High-Performance React Grid, Angular Grid, JavaScript Grid
resource
~/www.ag-grid.com
resource
GitHub - fundsaccess/angular-iban: IBAN directives and pipes for Angular
resource
~/github.com
resource
GitHub - ngneat/reactive-forms: (Angular Reactive) Forms with Benefits 😉
resource
~/github.com
resource
GitHub - iamguid/ngx-mf: Bind your model types to angular FormGroup type
resource
~/github.com
resource
Made with ❤️
to provide different kinds of informations and resources.