1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-15 20:46:57 +00:00

Created basic viewing pages in angular

Can now search and view tournaments. Can now view team scores, weights and seeds, mats and bout board
This commit is contained in:
2016-04-12 21:11:18 +00:00
parent 8f07bc2f82
commit 5b9f64b3f9
16 changed files with 423 additions and 62 deletions

View File

@@ -0,0 +1,24 @@
(function(){
app.directive('usSpinner', ['$http', '$rootScope' ,function ($http, $rootScope){
return {
link: function (scope, elm, attrs)
{
$rootScope.spinnerActive = false;
scope.isLoading = function () {
return $http.pendingRequests.length > 0;
};
scope.$watch(scope.isLoading, function (loading)
{
$rootScope.spinnerActive = loading;
if(loading){
elm.removeClass('ng-hide');
}else{
elm.addClass('ng-hide');
}
});
}
};
}]);
}).call(this);