ng-us-states
v1.0.2
Published
Service that provides States and Territories arrays
Downloads
3
Readme
README
This module provides a simple Angular 1.x service for retrieving US States and Territories
Methods
- getStates - returns 50 states
- getTerritories - returns 9 US Territories
- getStatesAndTerritories / getAll - returns alphabteized list of 59 States and Territories
How do I get set up?
bower install ng-us-states --save
Eample Usage
<html ng-app="app">
<head>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/ng-us-states/ng-us-states.js"></script>
<script>
angular.module('app', ['ngUSStates'])
.controller(function (USStateService) {
var states = USStateService.getAll();
});
</script>
</head>
</html>
Contribution guidelines
- Write tests
- Submit Pull Request
Who do I talk to?
- Brant Wellons [email protected]