ng-2-us-states

1.1.1 • Public • Published

README

Angular2 Service for retrieving a list of States, Territories or a merged array of both

How do I get set up?

  • import { USStateService } from './path/to/service/us-states.service';
  • providers: [USStateService] // Add to providers array
  • constructor(private usStateService: USStateService) {} // Inject into component constructor
  • this.usStateService.getStates(); // Use

Methods

  • getStates - returns 50 states
  • getTerritories - returns 9 territories
  • getAll - returns 59 states and territories

Contribution guidelines

  • Write tests
  • Pull Request

Who do I talk to?

Readme

Keywords

Package Sidebar

Install

npm i ng-2-us-states

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • bwellons