alexcheng1982 / Angular Country Select
Licence: mit
Country select for AngularJS
Programming Languages
javascript
184084 projects - #8 most used programming language
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].