I have simple drop-down bind with angular model
Your selected value is defined as ng-model
. On ng-change
you can call a method from the controller and provide the "selected" ng-model
to this method.
Here is an example:
<select
ng-model="product.Id"
ng-options="filter as filter.name for filter in groupList"
ng-change="changeItem(product.Id)"
></select>
Controller
$scope.changeItem = function(iem){
}
As a side note, I would use ng-options
instead of <option ng-repeat.....
Add a function to the scope that checks the condition and assigns the value if it is true. Simply call this function from ng-change.