Created
July 11, 2013 17:38
-
-
Save bshepherdson/5977526 to your computer and use it in GitHub Desktop.
Angular spinner directive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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