javascript - angularjs error in state function used in edit module -
method passing in result
$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}); } in used state method
.state('editdst', { url: '/editdst?e_id', templateurl: 'index.php/welcome/add', data: { pagetitle: 'edit district' }, controller:'dstmyctrl', params: { b: {} } }) but not working.
Comments
Post a Comment