Skip to content

Instantly share code, notes, and snippets.

@Colorfulstan
Created July 30, 2016 11:42
Show Gist options
  • Save Colorfulstan/bac519895eaedbff83d205becaa61a49 to your computer and use it in GitHub Desktop.
Save Colorfulstan/bac519895eaedbff83d205becaa61a49 to your computer and use it in GitHub Desktop.
Grab Angular Service from DOM
angular.element(document.querySelector('body')).injector().get('MyService')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment