传递此结果的方法
$scope.editdst = function(editdstId) {
http.get("index.php/Welcome/district_edit?id=" + editdstId)
.then(function(response,result){
alert(response);
$scope.row = response.data;
})
$state.go('editdst');
// $state.go('editdst',{editdstId});
}
用于状态方法
.state('editdst', {
url: '/editdst?e_Id',
templateUrl: 'index.php/Welcome/add',
data: {
pageTitle: 'Edit District'
},
controller:'dstmyctrl',
params: {
b: {}
}
})
但它没有用。