I am facing an issue with a selectbox populated with options from the backend.
<tr>
<td class="col-lg-4">Superkund</td>
<td><select class="form-control input-sm2" ng-model="selectedSupercustomer" ng-options="item as item.namn for item in superkundOptions" ng-change="onChangeSuperCustomer(selectedSupercustomer)"></select></td>
</tr>
$http.get($rootScope.appUrl + '/nao/abb/getSuperkundData/' + $rootScope.abbForm).success(function(data) {
$scope.superkundOptions = data;
});
The challenge I'm facing is that the first row remains empty and I want to replace it with a selected value. I attempted to do so with:
$scope.selectedSupercustomer = "fish"
However, this approach did not yield the desired result. Can anyone offer assistance?