var app = angular.module("pagingtable",['bw.paging']); app.controller('activityTableCtrl', function($scope, $http, $interval, $location, $rootScope) { $scope.tekshir = ""; $scope.rang = ""; $scope.logine = function(){ $http({ method:"POST", url:"/ajax/json/reg.php?e=5e1b34e0109a71859959a3eec87cb5f1", data:{'login':$scope.login} }).success(function(data){ $scope.tekshir = data.login; $scope.login = data.lo; }); }; $scope.mail = function(){ $http({ method:"POST", url:"/ajax/json/reg.php?e=5e1b34e0109a71859959a3eec87cb5f1", data:{'emal':$scope.emal} }).success(function(data){ $scope.ma = data.mail; $scope.emal = data.email; }); }; });