<select name="Connection" id="dropConnection" ng-change="connectionChange(this)" ></select>
following is the script.
var app = angular.module('myApp', ['angular.filter']);
app.controller('customersCtrl', function($scope, $http) {
function connectionChange(sel)
{
var connectionName = sel.options[sel.selectedIndex].text;
alert("connectionName");
}
});
Dropdown contents are added from json respose and its all working fine. The error is :
Uncaught ReferenceError: OnChange is not defined
at HTMLSelectElement.onchange