Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Created April 24, 2017 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudahGabriel/a2d0071eb3e1056a0f02303546c3dc98 to your computer and use it in GitHub Desktop.
Save JudahGabriel/a2d0071eb3e1056a0f02303546c3dc98 to your computer and use it in GitHub Desktop.
App.run([
"$q",
function ($q: ng.IQService) {
// Use Angular's Q object as Promise. This is needed to make async/await work properly with the UI.
// See http://stackoverflow.com/a/41825004/536
window["Promise"] = $q;
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment