Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created January 19, 2015 17:48
Show Gist options
  • Save lcaballero/debd28f1ce6678e492f0 to your computer and use it in GitHub Desktop.
Save lcaballero/debd28f1ce6678e492f0 to your computer and use it in GitHub Desktop.
Some angular cheats.
// Additional references: http://ionicframework.com/blog/angularjs-console/
// Get the scope of the element selected under the Chrome developer tool tab
c = angular.element($0).scope()
// Get the 'MyService' from the angular injector
angular.element(document.body).injector().get('MyService')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment