title: how to make synchronous http request in angular js
body: <p>How to make blocking http request in AngularJS so that i can use the $http response on very next line? </p>
  
  <p>In the following example, <code>$http</code> object doesn't return the result to the next line so that I can pass this result to <code>fullcalender()</code>, a JavaScript library, because <code>$scope.data</code> returns blank value.</p>
  
  <p>This is the sample code:</p>
  
  <pre><code>$http.get('URL').success(function(data){
      $scope.data = data;
  });
  
  $.fullCalender({
      data: $scope.data
  });
  </code></pre>