3.0.1 • Published 4 years ago
ngx-us-states v3.0.1
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 'ngx-us-states';
- Add it as an import:
-
imports: [ USStateModule ]
- Import in to your component:
-
import { USSateService } from 'ngx-us-states'
- Inject it in the constructor of your component:
-
constructor(private usStateService: USStateService) {}
- Call the methods:
-
this.usStateService.getStates();
Methods
getStates()
//returns 50 statesgetTerritories()
// returns 9 territoriesgetAll()
// returns 59 states and territories
Complaint Department
- Brant Wellons Brant@BrantWellons.com
3.0.1
4 years ago