how to call service method from ng-change of select in angularjs?
You have at least two issues in your code: ng-change=”getScoreData(Score) Angular doesn’t see getScoreData method that refers to defined service getScoreData: function (Score, callback) We don’t need to use callback since GET returns promise. Use then instead. Here is a working example (I used random address only for simulation): HTML <select ng-model=”score” ng-change=”getScoreData(score)” ng-options=”score as … Read more