在下拉列表中更改国家/地区时,相关状态未显示..警报每次选择不同国家时都会获得第一个国家/地区ID
<span editable-select="user.Country" e-name="Countrychk" e-id="Country" e-form="rowform" e-ng-options="x._id as x.CountryName for x in Countrydata"e-ng-change="changeCountry(user.Country)">{{ Countrydata.CountryName }}
$http.get('/CountryDetails').then(function(response){
debugger;
$scope.Countrydata=response.data;
});
$scope.changeCountry=function(CountryID){
debugger;
alert(CountryID);
$http.get('/StateDetails1'+ CountryID).then(function(response){
$scope.Statedata = response.data;
console.log($scope.Statedata);
});
};