I have a select box where i generated options using ng-repeat, but i want that to be generated using ng-options
<select ng-change="onChangeShippingMethod(shippingMethodId)" ng-model="shippingMethodId" class="input-full-w normal_dropDown" name="gjh" id="select_shipping_method" >
<option ng-repeat="shippingDetail in shipModeArr" value="{{shippingDetail.shipModeId}}" ng-selected="shippingDetail.shipModeId == selectedAddressPerItem[cartItems[0].cartItemId].shipModeId">
{{shippingDetail.description}} Arrives {{shippingDetail.estArrivalDate | changeDateFormat | date:'mediumDate'}}{{shippingDetail.shipCharge | currency}}
</option>
</select>
and i want a particular options should be selected based on some condition.
and using ng-repeat an empty options is coming with the other options
Please check in fiddle