Created
May 21, 2019 19:05
-
-
Save pinkhominid/f0e4c552e64e5543b39c0df250dc39d2 to your computer and use it in GitHub Desktop.
One-line AngularJS get service instance (e.g. $http)
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
angular.element(document.body).injector().get('$http') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment