ng2-country-service
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

README

Angular2 Service for retrieving a list of Countries by continents

How do I get set up?

  • Import the module:
    • import { CountryModule } from 'ng2-countries';
  • Add it as an import:
    • imports: [ CountryModule ]
  • Inject it in the constructor of your component:
    • constructor(private countryService: CountryService) {}
  • Call the methods:
    • this.countryService.getNorthAmericanCountries();

Methods

  • getNorthAmericanCountries() -
  • getEuropeanCountries() -
  • getAsianCountries() -
  • getAfricanCountries() -
  • getOceaniaCountries() - Australia, etc
  • getSouthAmericanCountries() -
  • getAntarcticaCountries() -

Contribution guidelines

  • Code
  • Write tests
  • Pull Request

Improvement ideas, general non-sense...

Readme

Keywords

Package Sidebar

Install

npm i ng2-country-service

Weekly Downloads

0

Version

3.0.2

License

ISC

Unpacked Size

183 kB

Total Files

26

Last publish

Collaborators

  • bwellons
  • jdjuan