I have this below html
<select name="reason" class="form-control" ng-model="reasonSelected"
ng-options="reason for reason in reasonList" required></select>
and in the beginning of my angular controller I have
$scope.reasonSelected = $scope.item.stsChangeReason;
$log.debug("$scope.reasonSelected = " + $scope.reasonSelected);
which is printing this below to console but still no default
LOG: $scope.reasonSelected = someValue
and in some other init function I have
$scope.reasonList = response;
If I do
$scope.reasonSelected = $scope.reasonList[0];
then I see a default value. Am I missing something obvious here?