编辑模块中使用的状态函数中的angularjs错误

时间:2017-04-07 23:07:46

标签: javascript angularjs

传递此结果的方法

$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: {}
         }


   })

但它没有用。

0 个答案:

没有答案