New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

intl-tel-input-ng

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-tel-input-ng

[![Build Status](https://travis-ci.org/mpalourdio/intl-tel-input-ng.svg?branch=master)](https://travis-ci.org/mpalourdio/intl-tel-input-ng) [![Coverage Status](https://coveralls.io/repos/github/mpalourdio/intl-tel-input-ng/badge.svg?branch=master)](https:

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

intl-tel-input-ng

Build Status Coverage Status npm npm

Changelog

Please read the changelog

Contributing

Use the fork, Luke. PR without tests will likely not be merged.

Installation

To install this library, run:

$ npm install intl-tel-input --save / yarn add intl-tel-input
$ npm install intl-tel-input-ng --save / yarn add intl-tel-input-ng
  • Add node_modules/intl-tel-input/build/js/utils.js to the scripts section in your angular.json.
  • Add node_modules/intl-tel-input/build/css/intlTelInput.css to the styles section in your angular.json.
  • Import IntlTelInputNgModule.forRoot() in your main application module.

What is it ?

It's an angular component to easily integrate intl-tel-input.

Options

  • options: An object representing the intl-tel-input options.
  • onlyLocalized: If true, displays only localized country data. See here.
  • label: If provided, will generate a label for the input (if the name option is set too).
  • name: Sets name and id attributes for the input.
  • cssClass: The CSS class used to style the input component.
  • required: Sets the required && 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:

 <intl-tel-input
       [label]="'Please enter your phone number'"
       [name]="'my-name'"
       [cssClass]="'form-control'"
       [required]="true"
       [options]="{
           preferredCountries: ['ch'],
           localizedCountries: { ch: 'Suisse' },
           onlyCountries: ['fr', 'ch']
       }"
       [onlyLocalized]="true"
       [(E164PhoneNumber)]="E164PhoneNumber"></intl-tel-input>

Keywords

FAQs

Package last updated on 10 Dec 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc