You're giving an error on the console that I can not figure out
Error: [orderBy: notarray] Expected array but received
The list is coming correct in the combobox, but gives the error I mentioned.
Follow the HTML and Angular as I'm doing:
function carregaCadastro() {
var cad = gatewayClient.delivery('cadastro').request('lista');
requestMonitor.add('formCadstro', cad);
gatewayClient.execute(cad).then(function(result) {
$scope.cadastro = result.data.value;
})
}
<div class="col">
<select class="form-control" name="cadastro " ng-options="cadastro.nome for cadastro in (cadastro | orderBy:'noem') track by cadastro.id" ng-model="cadastro" id="cadastro">
<option value="" disabled selected> -- Selecione -- </option>
</select>
</div>