Created
January 19, 2015 17:48
-
-
Save lcaballero/debd28f1ce6678e492f0 to your computer and use it in GitHub Desktop.
Some angular cheats.
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
// 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