I have two <select>
, ie a handmade multiselect picklist.
In the first <select>
, I want to show only the clients that are brought by ng-repeat
but contain the consultaNotasDestinadas
field as '1'.
In the second <select>
, I want to show only the clients that are brought by ng-repeat
but contain the consultaNotasDestinadas
field as '0'.
How can I do this?
Follow my html:
<div class="form group">
<label class="control-label col-md-3">Empresas:</label>
<select id="select1" name="select1" multiple="multiple">
<option ng-repeat="c in clientes" value="{{c.idCliente}}" ng-click="atribuirUm($index, c)">{{c.razaoSocial}}</option>
</select>
<label class="control-label col-md-3">Empresas:</label>
<select ng-model="listaEmpresas" id="select2" name="select2" multiple="multiple">
<option selected="selected" ng-repeat="c2 in clientes2" value="{{c2.idCliente}}" ng-click="limparUm($index, c2)">{{c2.razaoSocial}}</option>
</select>
</div>