How to call a function in the case given below?
<select class="dropdown">
<option ng-repeat="group in myGroups" ng-model="group.Name" ng-change="myFunction(group.Id)">{{group.Name}}</option>
</select>
- ng-click won't work
- ng-model is needed if you want to use ng-change (I don't need ng-model in this case otherwise)
- ng-change doesn't seem to call a function as well
- I know I could probably just use ng-model and $watch, but since I don't think I can really use ng-model in this case I am a bit confused
So, how can I call a function inside ng-repeat select? (its not ng-select as you probably noticed)