My code is as follows:
<select ng-model="testV" ng-change="change()">
<option value="">Any</option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
How to set the selected option to an item with value equal to $scope.testV?
Add this sentence
$scope.testV = 2;
to the controller and it will display 2 by default.In this way, every time the select value is changed, the console will output the changed value.