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

3.0.4 • Public • Published

README

Angular Service for retrieving a list of Countries by continents

How do I get set up?

  • Import the module:
    • import { CountryModule } from 'ngx-countries';
  • Add it as an import:
    • imports: [ CountryModule ]
  • Add import to component
    • import { SountryService } from 'ngx-countries';
  • 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 ngx-country-service

Weekly Downloads

2

Version

3.0.4

License

ISC

Unpacked Size

183 kB

Total Files

26

Last publish

Collaborators

  • bwellons