For showing spinner GIF during a $http request in AngularJS it depends on your specific use case,
Looking for Angularjs material from basics! Refer to this video on Angularjs provided by Intellipaat:
but a simple way would follow a pattern like as follows:-
.controller('MainCtrl', function ( $scope, myService ) {
$scope.loading = true;
myService.get().then( function ( response ) {
$scope.items = response.data;
}, function ( response ) {
// TODO: handle the error somehow
}).finally(function() {
// called no matter success or failure
$scope.loading = false;
});
});