When I starting app for the first time, after login I make one http request to server and wait couple second for response while server make things done. While I am waiting I can click on some link and walk trough app. I want to disable this and make some loading gif across all page, but I don't know how to do that.
My Controller:
vm.starting = starting;
function starting() {
dataService.restartVersion().then(function (data) {
});
}
My Service
function restartVersion() {
return $http.post('http://localhost/organization/restartVer', {
}).then(function(response) {
return response.data;
});
}
How to implement something in my code to show loading gif across all page?
Any helps?
Thanks in advance