Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 是否可以在内联编辑中创建级联下拉列表?_Javascript_Angularjs_Mean Stack - Fatal编程技术网

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

Javascript 是否可以在内联编辑中创建级联下拉列表?,javascript,angularjs,mean-stack,Javascript,Angularjs,Mean Stack,在下拉列表中更改国家/地区时,不显示相关状态。。alert每次选择不同的国家时都会获取第一个国家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)">{{ C

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