0
app.controller('UserOthersListCtrl', ['$http','$scope', '$stateParams', 'userOthers','$compile', '$state','DTOptionsBuilder', 'DTColumnBuilder',
function($http, $scope, $stateParams, userOthers, $compile, $state, DTOptionsBuilder, DTColumnBuilder)
{
var vm = this;
vm.dtInstance = {};
vm.users = [];
console.log("user", $stateParams.id);
vm.page = $stateParams.page;
vm.dtOptions = DTOptionsBuilder.newOptions()
.withOption('ajax', {
url: '/users/others/list/id',
type: 'post',
data: function(data, dtInstance) {
console.log(data);
}
})
我想用URL來傳遞id的值,但是當我使用上面的代碼和調試的節目ID爲文本,我不能在我的服務器端控制器訪問id的值如何訪問我的服務器控制器中的參數值?