ng-2-us-states
Version:
Angular 2 service for retrieving States and Territories
24 lines (16 loc) • 661 B
Markdown
# 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? ###
* Brant Wellons <Brant@BrantWellons.com>