Skip to content

Instantly share code, notes, and snippets.

@olostan
Created June 10, 2014 13:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save olostan/7a22213d7fd469c42d51 to your computer and use it in GitHub Desktop.
Save olostan/7a22213d7fd469c42d51 to your computer and use it in GitHub Desktop.
Invoke some function with injection from console
angular.element(document.body).injector().invoke(function($http) { $http.get('/api/').then(console.log.bind(console),console.error.bind(console))})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment