Files
openfoodnetwork/app/assets/javascripts/darkswarm/directives/loading.js.coffee
2014-06-10 14:52:27 +10:00

11 lines
241 B
CoffeeScript

Darkswarm.directive "loading", (Loading)->
scope: {}
restrict: 'E'
templateUrl: 'loading.html'
controller: ($scope)->
$scope.Loading = Loading
$scope.show = ->
$scope.Loading.message?
link: ($scope, element, attr)->