I am trying to set a default in to the below drop down
<div hidden id="projectSelected">
<label style="font-size: medium">Project *</label>
<select name="projectSelected" id="projectSelectedId" class="form-control"
ng-model="request.projectSelectedBarcode" required>
<option ng-repeat="prj in projectList" value="{{prj.Barcode}}">{{ prj.Name }}</option>
</select>
<div style="color:maroon" ng-messages="getServiceReuqestForm.projectSelected.$error"
ng-if="getServiceReuqestForm.projectSelected.$touched">
<div ng-message="required">This field is required</div>
</div>
</div>
Here projectList
is the data returned from the Odata call. Is it possible that I can have one of the returned values as default in to my dropdown.