Loading feedback

This commit is contained in:
jendib
2013-08-16 17:14:50 +02:00
parent 988f55de3f
commit d1644dcbc0
7 changed files with 67 additions and 42 deletions
@@ -3,7 +3,7 @@
/**
* Navigation controller.
*/
App.controller('Navigation', function($scope, $state, $rootScope, User, Restangular) {
App.controller('Navigation', function($scope, $http, $state, $rootScope, User, Restangular) {
$rootScope.userInfo = User.userInfo();
/**
@@ -16,4 +16,8 @@ App.controller('Navigation', function($scope, $state, $rootScope, User, Restangu
});
$event.preventDefault();
};
$scope.isLoading = function() {
return $http.pendingRequests.length > 0;
};
});