Created
April 30, 2015 21:01
-
-
Save jonocairns/26e00d83270741fb8fd3 to your computer and use it in GitHub Desktop.
This file contains 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
'use strict'; | |
module app.common { | |
export function spinner(): ng.IDirective { | |
return { | |
restrict: 'E', | |
replace: true, | |
templateUrl: 'views/templates/spinner.html' // this template can contain an spinner SVG | |
}; | |
} | |
angular | |
.module('app.common') | |
.directive('spinner', spinner); | |
} | |
// usage | |
// <div class="row" ng-show="vm.isLoading"> | |
// <spinner></spinner> | |
// </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment