I am beginner in java script and does not understand how to create synchronous Ajax call using $http object if anybody have idea please guide me, how i can make Ajax call by $http sychronously
my code as follow -
var AjaxModule = angular.module('AjaxModule',[]);
AjaxModule.controller('AjaxController',function($scope,$http){
var path ="http://localhost/services_ajax/";
var serviceName = 'customers';
var response = $http.get(path+serviceName);
response.success(function(data){
$scope.list = data;
});
});