Trying to pre-select a value in a dropdown from database but facing issues. Need assistance in resolving this problem.
HTML
<select class="form-control" ng-model="reportType.consolidationScopeId">
<option value="">Please select</option>
<option ng-repeat="consolidationScope in consolidationScopes" value="{{consolidationScope.consolScopeId}}">{{consolidationScope.consolScopeLabel}}</option>
</select>
Controller
$http.get("/mdmservice/services/consolidationScopes")
.success(function(data, status, headers, config) {
$scope.consolidationScopes = data;
});