3.0.1 • Published 6 years ago

ng2-us-states v3.0.1

Weekly downloads
131
License
MIT
Repository
bitbucket
Last release
6 years ago

README

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

How do I get set up?

  • Import the module: - import { USStateModule } from 'ng2-us-states';
  • Add it as an import: - imports: [ USStateModule ]
  • Import in to your component: - import { USSateService } from 'ng2-us-states'
  • Inject it in the constructor of your component: - constructor(private usStateService: USStateService) {}
  • Call the methods: - this.usStateService.getStates();

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?

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

8 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago