Here is my ajax request,
I wanted to show the loading spinner. I refered here but i am not clear in it.
I just wanted to show the spinner during the $http.post and hide after the post is done. 
Something like angular.element('#mydiv').show() and angular.element('#mydiv').hide() inside the call. In which place shall  i give that to show the #mydiv during the post was in progress.
Here is my call
$scope.doVerify={email:'',password:''};
    $scope.doVerify = function () 
    {
     email = $scope.verify.useremail;
     password = $scope.verify.password;
     $scope.data.show = false; 
     $http.post('VerifyUser', { email: email, password: password}).then(function (results) 
     {
     $scope.data.show = true
     if(results.data=='success')
     {
     $location.path('registration');
     }
     else
     {
     $scope.data.msg = 'Incorrect Password'
     }
     });
    };
Where shall i put the angular.element('#mydiv').show() and angular.element('#mydiv').hide() to the loader ?

