angular-country-select

WebJar for angular-country-select

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-country-select
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-country-select
WebJar for angular-country-select
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/alexcheng1982/angular-country-select

Download angular-country-select

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.3.8,1.4)
org.webjars.bower : select2 jar [3.5.2,3.6)

Project Modules

There are no modules declared in this project.

Country select for AngularJS

A simple AngularJS directive to create country select. It uses select2 to create auto-complete country select. Country data is from mledoze/countries.

Install

Install angular-country-select using Bower bower install angular-country-select.

Usage

Make your Angular module depend on module angular-country-select.

angular.module('countrySelectExample', ['angular-country-select']);

Then use directive country-select.

<input country-select data-ng-model="country">

Value of selected country is the ISO 3166-1 alpha-2 code, e.g. CN, US.

See example.html for a simple example.

Countries data

Countries JSON data is inlined into JavaScript file during Grunt build, so no extra download is required in runtime.

Versions

Version
1.0.0