It's a sample about ng-change with checkbox.
I'd like to make the checkbox into a selection but failed. Here's the code:
<select>
<option ng-model="confirmed" ng-change="change()">1</option>
<option ng-model="confirmed" ng-click="change()">2</option>
</select>
If somebody could help I'll be appreciate.
You need to bind them to the select element not option
<select ng-model="confirmed" ng-change="change()">
<option>1</option>
<option>2</option>
</select>