country-region-selector
country-region-selector copied to clipboard
Added AngluarJS functionality - need some distro changes to make it official though.
This is the most comprehensive list that I have seen. Lets make it better though.
-
I have written an angularJS components for this. But in order for users to only get what they need it would be best to separate the the country/city code list from the main repo. And then allow options for users to just grab updates to city/country codes as they happen. If you can do this I will post all the necessary code for the AngularJS implementation.
-
Another issue for consistency is using two/three letter codes for regions/states - there are about 2 dozen that don't have 2 or 3 letter codes....those countries just have the city name and this is all. That poses a problem for Angular when building the $scopes needed for the select drop down menus. In order to fix this, I had to find all those country regions which didn't have a proper 2/3 letter code and basically make one up. In my app i only store the country or region codes...so if one doesn't exist it will break my implementation.
Aside from how I made up region/state codes, how else can this be addressed?
The country codes are already separated, and stored in a completely different repo, https://github.com/benkeen/country-region-data