<div ng-app="selectExample">
<div ng-controller="ExampleController">
<ul>
<li ng-repeat="item in colors">
{{item.name}}
<input type="checkbox" ng-model="item.notAnOption" />
</li>
</ul>
<lable>
Select a color :
<select ng-model="myColorAs" ng-options="color.id as color.name for color in colors">
</select>
</lable>
</br>
Select a color(nullable) :
<select ng-model="myColor" ng-options="color.name for color in colors">
<option value="">-- choose color --</option>
</select>
</br>
Select a color group by shade :
<select ng-model="myColor" ng-options="color.name group by color.shade for color in colors">
</select>
</br>
Select a color group by and disabled :
<select ng-model="myColor" ng-options="color.name group by color.shade disable when color.notAnOption for color in colors">
</select>
<table style="height:10px;padding-top:10px">
<tr>
<td>Selected Itemis : </td>
<td style="color:{{myColor.name}}">{{myColor}} {{myColor.name}}</td>
</tr>
<tr>
<td>Selected item As : </td>
<td> {{myColorAs}}</td>
</tr>
</table>
</div>
</div>