{"id":13982992,"url":"https://github.com/mpalourdio/intl-tel-input-ng","last_synced_at":"2025-03-16T17:35:16.286Z","repository":{"id":33737946,"uuid":"161165129","full_name":"mpalourdio/intl-tel-input-ng","owner":"mpalourdio","description":":telephone: Angular module for intl-tel-input integration (https://github.com/jackocnr/intl-tel-input)","archived":false,"fork":false,"pushed_at":"2024-05-12T17:07:24.000Z","size":3268,"stargazers_count":16,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-13T17:50:49.950Z","etag":null,"topics":["angular","angular2","e164","intl-tel-input","lib-phone-number","phone-number"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpalourdio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"mpalourdio"}},"created_at":"2018-12-10T11:34:54.000Z","updated_at":"2024-05-29T19:45:36.425Z","dependencies_parsed_at":"2024-01-03T12:24:22.702Z","dependency_job_id":"e0589f8a-e351-4c1e-8172-bfb80cc02d0a","html_url":"https://github.com/mpalourdio/intl-tel-input-ng","commit_stats":{"total_commits":214,"total_committers":2,"mean_commits":107.0,"dds":0.004672897196261627,"last_synced_commit":"7805c0e349f27c253c410c4472cdaa17b810b202"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fintl-tel-input-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fintl-tel-input-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fintl-tel-input-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fintl-tel-input-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpalourdio","download_url":"https://codeload.github.com/mpalourdio/intl-tel-input-ng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243823362,"owners_count":20353657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular2","e164","intl-tel-input","lib-phone-number","phone-number"],"created_at":"2024-08-09T05:01:35.473Z","updated_at":"2025-03-16T17:35:16.040Z","avatar_url":"https://github.com/mpalourdio.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mpalourdio"],"categories":["Development Utilities"],"sub_categories":["Internationalization"],"readme":"# intl-tel-input-ng\n\n[![CI](https://github.com/mpalourdio/ng-http-loader/actions/workflows/main.yml/badge.svg)](https://github.com/mpalourdio/ng-http-loader/actions/workflows/main.yml)\n[![Coverage Status](https://coveralls.io/repos/github/mpalourdio/intl-tel-input-ng/badge.svg?branch=master)](https://coveralls.io/github/mpalourdio/intl-tel-input-ng?branch=master)\n[![npm](https://img.shields.io/npm/v/intl-tel-input-ng.svg)](https://www.npmjs.com/package/intl-tel-input-ng)\n[![npm](https://img.shields.io/npm/dm/intl-tel-input-ng.svg)](https://www.npmjs.com/package/intl-tel-input-ng)\n\n## Changelog\n\n[Please read the changelog](CHANGELOG.md)\n\n## Contributing\n\nUse the fork, Luke. PR without tests will likely not be merged.\n\n## What is it ?\n\nIt's an angular standalone component to easily integrate [intl-tel-input](https://github.com/jackocnr/intl-tel-input).\n\n## Installation\n\nTo install this library, run:\n\n```bash\n# install intl-tel-input\n$ npm install intl-tel-input --save / yarn add intl-tel-input\n\n# install this module\n$ npm install intl-tel-input-ng --save / yarn add intl-tel-input-ng\n```\n\n- Add `node_modules/intl-tel-input/build/js/utils.js` to the `scripts` section in your `angular.json`.  \n- Add `node_modules/intl-tel-input/build/css/intlTelInput.css` to the `styles` section in your `angular.json`.\n- Import ``IntlTelInputNgModule.forRoot()`` in your main application module.\n\n## Options\n - `options`: An object wrapping the `intl-tel-input` [options](https://github.com/jackocnr/intl-tel-input#options).\n - `label`: If specified, will generate a `label` for the input (if the name option is set too).\n - `name`: Sets `name` and `id` attributes for the input. The default value is `intl-tel-input-name`.\n - `cssClass`: The CSS class used to style the input component.\n - `labelCssClass`: The CSS class used to style the label associated to the input.\n - `required`: Sets the `required` \u0026\u0026 `aria-required` attributes for the input.\n - `[(E164PhoneNumber)]`: Outputs the phone number in E164 format if valid.\n\nSee the [intl-tel-input repository](https://github.com/jackocnr/intl-tel-input) for more documentation.\n\n## Example:\n**The component must be declared between `\u003cform\u003e` tags !**\n \n ```xml\n\u003cform #form=\"ngForm\"\u003e\n    \u003cintl-tel-input\n        [label]=\"'Please enter your phone number'\"\n        [name]=\"'my-name'\"\n        [cssClass]=\"'form-control'\"\n        [labelCssClass]=\"'col-sm-2 col-form-label'\"\n        [required]=\"true\"\n        [options]=\"{\n            preferredCountries: ['ch'],\n            i18n: { ch: 'Suisse' },\n            onlyCountries: ['fr', 'ch']\n        }\"\n        [(E164PhoneNumber)]=\"E164PhoneNumber\"\u003e\u003c/intl-tel-input\u003e\n\u003c/form\u003e     \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpalourdio%2Fintl-tel-input-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpalourdio%2Fintl-tel-input-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpalourdio%2Fintl-tel-input-ng/lists"}