Skip to content

Instantly share code, notes, and snippets.

@fastcodecoq
Created January 11, 2017 01:04
Show Gist options
  • Save fastcodecoq/4a6b1331745188325a5d20ea46a7ca13 to your computer and use it in GitHub Desktop.
Save fastcodecoq/4a6b1331745188325a5d20ea46a7ca13 to your computer and use it in GitHub Desktop.
<select
class="form-control"
ng-model="user.country"
ng-options="country as country.name for item in countries track by country.country_code"
required
ng-init="countries[0]"
ng-change="setStates(item)"
>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment