ngx-country-select
Based on the awesome country-select-js by mrmarkfrench(https://github.com/mrmarkfrench/country-select-js)
Installation
First you need jquery and country-select-js installed. Import them to your angular-cli file like this
"styles": , "scripts": ,
To install this library, run:
$ npm install ngx-country-
Consuming your library
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install ngx-country-
and then from your Angular AppModule
:
;; ; // Import your library;
Once your library is imported, you can use its components, directives and pipes in your Angular application:
<!-- You can now use your library component in app.component.html -->...
To select country or get country data manually:
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
License
MIT © Nikolas Pafitis