Here is my HTML
<select ng-if="list[$index].length>0" data-ng-model="form1value[$index]"
data-ng-options="label for label in obj.child track by $index">
</select>
I am getting the last value in obj.child as selected by default. I want to write 'select' in the select bar
You can use the following approach (--Select-- will be the default selected option):
<select ng-if="list[$index].length>0" data-ng-model="form1value[$index]">
<option value="">--Select--</option>
<option ng-repeat="item in obj.child track by $index" value="{{item}}">{{item}}</option>
</select>