I have a select with options getting from server
<div class="form-group">
<label for="exampleInputEmail1">Terminal Type</label>
<select ng-model="terminal.terminalType" id="terminaltype" class="form-control" ng-options="type.name for type in types">
</select>
</div>
but how can I set option in my controller. I used:
$("#terminaltype").val($scope.types[0]);
and
document.getElementById("terminaltype").options[i];
but it does not work. Please help me