Files
openfoodnetwork/app/assets/javascripts/darkswarm/directives/loading.js.coffee
Will Marshall 6b00b1c14c MOAR COMMENTS
2014-07-31 15:58:03 +10:00

10 lines
279 B
CoffeeScript

Darkswarm.directive "loading", (Loading)->
# Triggers a screen-wide "loading" thing when Ajaxy stuff is happening
scope: {}
restrict: 'E'
templateUrl: 'loading.html'
controller: ($scope)->
$scope.Loading = Loading
$scope.show = ->
$scope.Loading.message?