是否可以在内联编辑中创建级联下拉列表?

时间:2018-04-27 10:25:50

标签: javascript angularjs mean-stack

在下拉列表中更改国家/地区时,相关状态未显示..警报每次选择不同国家时都会获得第一个国家/地区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);
    });
};

0 个答案:

没有答案