0
My HTML is 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 when I put up a value on $scope.cliente
it would work but it didn’t work!
Does anyone know how to do that? Thank you