angularjs-country-select

1.0.0 • Public • Published

AngularJS country select

Country select is an AngularJS directive for picking countries from a list.

It uses the same countries as the country_select gem.

This directive will display the country's name in <option> but will bind your ng-model to the ISO-3166 alpha-2 code of the selected country.

Supports an additional attribute is-eu (read-only) to check if selected country is part of EU (source: http://europa.eu).

How to

  1. Add the markup <div country-select ng-model="selectedCountry" is-eu="isEUboolean"></div>
  2. Add the dependency to your app's module angular.module('myApp', ['countrySelect']);

Readme

Keywords

none

Package Sidebar

Install

npm i angularjs-country-select

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

21.1 kB

Total Files

7

Last publish

Collaborators

  • hankmander