I'm trying to modify a form which is using a select box that is populate NOT using ng-options.
The form itself is bound to an angular controller. Is there still a way for me to know the selected value of the select box even though the select values were not build using ng-options?
I have the following
<select ng-model="country" ng-change="checkValue()"
but the checkValue function isn't even firing, apparently.
Any thoughts?
You don't need to use
ng-options
to get the selected value. As long as your select element usesng-model
the value will be stored there.For example:
Now in your controller you would be able to access the value of the select using
$scope.mySelectValue
.