My HTML looks like this:
<select ng-model="cliente" ng-options="t.value as t.displayName for t in clientes"></select>
In the Controller of my JS I have:
$scope.clientes // objeto onde tem todos os clientes para alimentar o select
$scope.cliente // esse é o meu ng-model
My select is working perfectly, I can get the data and save it. My question is the following, how do I fill this select via javascript? I thought that when I put up a value in $scope.cliente
it would work, but it did not work!
Does anyone know how to do this? Thanks