Skip to content

Instantly share code, notes, and snippets.

@bshepherdson
Created July 11, 2013 17:38
Show Gist options
  • Select an option

  • Save bshepherdson/5977526 to your computer and use it in GitHub Desktop.

Select an option

Save bshepherdson/5977526 to your computer and use it in GitHub Desktop.
Angular spinner directive
timetogetherApp.directive 'ttSpinner', ->
scope: { waitFor: '=ttSpinner' }
restrict: 'A'
template: '''
<div ng-show="!waitFor" class="spinner">
<img src="/app/images/spinner.gif" />
</div>
<div ng-show="waitFor" ng-transclude></div>
'''
transclude: true
link: ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment