Last active
January 7, 2016 20:22
-
-
Save patrickmaciel/484f6535ad9dd0fa7c99 to your computer and use it in GitHub Desktop.
AngularJS ng-options for html select element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select | |
name="customer_id" | |
id="customer_id" | |
class="text" | |
ng-model='filtro.estado' | |
ng-click="selectItem('estado', filtro.estado, $event)" | |
ng-options="estado as estado for estado in listas.estados"> | |
<option value="">Selecione</option> | |
</select> | |
<select | |
name="customer_id2" | |
id="customer_id2" | |
class="text" | |
ng-model='filtro.estado2' | |
ng-click="selectItem('estado', filtro.estado2, $event)" | |
ng-options="v as v for (k,v) in listas.estados"> | |
<option value="">Selecione</option> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment