I am using ng-select to put the default option as the first option (past). However it shows the default as "undefined".
<select ng-model="yearSem" ng-show="integrated" ng-change="enrollCtrl.sendYearAndSem()">
<option value="Past" ng-selected="true"> Past Semesters </option>
<option value="Current"> Current Semester </option>
<option ng-repeat="sem in offSemList" value="{{sem}}"> {{sem}} </option>
</select>
If I do this however I don't get the same error.
<select ng-model="yearSem" ng-show="integrated" ng-change="enrollCtrl.sendYearAndSem()">
<option value="Past" ng-selected="true"> Past Semesters </option>
<option value="Current"> Current Semester </option>
</select>
Thing is I need to show a few in the list and a few at the beginning. Is there a way of doing it?