Show throbber automatically with $http/$resource on AngularJS
$http.get('/path/to/awesome/api');
http://januswel.github.io/throbberInterceptor.js/demo/
You can specify "$throbber" object in the configuration object for $http.
$http.get('/path/to/awesome/api', {
'$throbber': {
parent: '#parent-element-to-show-throbber',
throbber: '<img src="awesome-throbber.png">'
}
});