I'm having a hard time filtering client systems within select .
I'll explain:
I have client A which has 1 and 2 system, I have client B 3 .
When selecting the client within select , I want the select to pull only the system that the client has contracted, / em> I want to show only the 3 system to select.
<label for="sel1">Selecione um cliente</label>
<select ng-required="true" class="form-control input-lg" ng-model="solicitacao.id_solicitacao_cliente" ng-controller="clienteController">
<option disabled></option>
<option value="{{cliente.id_cliente}}" ng-repeat="cliente in cliDados | orderBy:'nomecli'">{{cliente.nomecli}}</option>
</select>
<label></label>
<label for="sel1">Selecione um sistema</label>
<select ng-required="true" class="form-control input-lg" ng-model="solicitacao.id_solicitacao_sistema" ng-controller="sistemaController">
<option disabled></option>
<option value="{{sistema.id_sistemas}}" ng-repeat="sistema in sisDados | orderBy:'nomesis'">{{sistema.nomesis }}</option>
</select>
In other words, I have no idea how to pass the ID of the first select after selected.