[angularjs] Show spinner GIF during an $http request in AngularJS?

This is the easiest way to add a spinner i guess:-

You can use ng-show with the div tag of any one of these beautiful spinners http://tobiasahlin.com/spinkit/ {{This is not my page}}

and then you can use this kind of logic

_x000D_
_x000D_
//ajax start_x000D_
    $scope.finderloader=true;_x000D_
    _x000D_
          $http({_x000D_
    method :"POST",_x000D_
    url : "your URL",_x000D_
  data: { //your data_x000D_
     _x000D_
     }_x000D_
  }).then(function mySucces(response) {_x000D_
    $scope.finderloader=false;_x000D_
      $scope.search=false;          _x000D_
    $scope.myData =response.data.records;_x000D_
  });_x000D_
     _x000D_
    //ajax end _x000D_
    
_x000D_
<div ng-show="finderloader" class=spinner></div>_x000D_
//add this in your HTML at right place
_x000D_
_x000D_
_x000D_