ng-selected not working with ng-repeat,in inspect element i can see ng-selected= true and there is selected attribute on option element.my code is as follows and output screenshot is also given below.
<div class="row">
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<label for="">{{diamond.category_id}}</label>
</div>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
<select ng-model="diamond.category_id" class="form-control">
<option ng-selected="{{diamond.category_id == category.id}}"
value="{{category.id}}"
ng-repeat="category in categoryData"
>{{category.id}}</option>
</select>
</div>
Output Link : http://prntscr.com/bfcdwa
ng-options.<select ng-model="diamond.category_id" ng-options="category as category for category in categoryData"> </select>