following solution is not working for me some how
How to cancel an $http request in AngularJS?
above solution effect - abort new ajax call also,it should be allow new ajax call and abort old ajax call
my code
$scope.callajax = function () {
        var canceller = $q.defer();
                    var data = {};
                        data['id'] = id;
                    $http({
                        method: "post",
                        url: url,
                        data: $.param(data),
                        timeout: canceller.promise,
                        headers: {'Content-Type': 'application/x-www-form-urlencoded'}
                    }).success(function (response) {
                    });
            canceller.resolve();
    };
i am calling this function,if i call this function two time at a time then it should be abort first ajax call and fire new ajax call
 
     
    