Skip to content

Instantly share code, notes, and snippets.

@karlwestin
Created August 14, 2014 15:32
Show Gist options
  • Save karlwestin/ae496fb1cf45b3e581dd to your computer and use it in GitHub Desktop.
Save karlwestin/ae496fb1cf45b3e581dd to your computer and use it in GitHub Desktop.
scope.$watch("ptrLoading", function(val) {
if(val === true) {
topIndicator.className += "loading-class"
topIndicator.innerText = loadingText;
bottomIndicator.innerText = loadingText;
} else {
resetIndicators();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment