I have trouble to get the selected option value.
View
<select class="form-control" ng-model="mySel">
<option ng-repeat="option in Array" value="@{{ option.id }}">@{{ option.name }}</option>
</select>
<button type="button" class="btn btn-primary" ng-click="getData(mySel);">Select</button>
Controller
scope.getData = function(selectedValue) {
alert(selectedValue);
}
This returns undefined
.