angular-tel-input

WebJar for angular-tel-input

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-carlosrymer-angular-tel-input
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-tel-input
WebJar for angular-tel-input
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/carlosrymer/angular-tel-input

Download github-com-carlosrymer-angular-tel-input

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-carlosrymer-angular-tel-input/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-carlosrymer-angular-tel-input</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-carlosrymer-angular-tel-input/
implementation 'org.webjars.bower:github-com-carlosrymer-angular-tel-input:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-carlosrymer-angular-tel-input/
implementation ("org.webjars.bower:github-com-carlosrymer-angular-tel-input:1.0.0")
'org.webjars.bower:github-com-carlosrymer-angular-tel-input:jar:1.0.0'
<dependency org="org.webjars.bower" name="github-com-carlosrymer-angular-tel-input" rev="1.0.0">
  <artifact name="github-com-carlosrymer-angular-tel-input" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-carlosrymer-angular-tel-input', version='1.0.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-carlosrymer-angular-tel-input" % "1.0.0"
[org.webjars.bower/github-com-carlosrymer-angular-tel-input "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

angular-tel-input

An AngularJS component supporting 10-digit telephone input fields based on the North American Numbering Plan (does not support all phone conventions).

Installation

This Angular component is available via bower and npm. To install:

bower install angular-tel-input --save

OR

npm install angular-tel-input --save

Usage

You must either bundle the installed script in your app via build scripts or include directly in your HTML:

<script src="path/to/source/dist/angular-tel-input.min.js" type="text/javascript"></script>

Include the module in your application:

angular.module('app', ['ngTelInput']);

Include the component in a form where needed:

<ng-form name="Form">
  <tel-input input-name="'phone'" is-required="true" number="phoneNumber" on-change="change()" on-blur="blur()" on-focus="focus()"></tel-input>
</ng-form>

The following bindings are supported:

  • number (required): This is the model we want to update. Note that the raw, unformatted number will be bound rather than the formatted value.
  • inputName (optional): This must be a string, and represents the input name. This can be useful with forms. If using form validation, you must use ngForm.
  • isRequired (optional): Whether the input should be required or not as part of the form.
  • onChange (optional): A function to call when the value changes.
  • onBlur (optional): A function to call when the input is blurred.
  • onFocus (optional): A function to call when the input is focused.

Demo

https://thimbleprojects.org/carlosrymer/139559

Contributing

Want to contribute? Great! It's very simple. Just make a pull request and I'll review your changes as soon as possible.

Todos

  • Write Unit Tests

License

MIT

Versions

Version
1.0.0