Created
April 26, 2015 14:27
-
-
Save allenhwkim/5c1a6ebe7628de1582df to your computer and use it in GitHub Desktop.
Javascript To set see scope easily in console with CTRL-click
This file contains 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
document.addEventListener('contextmenu', function(evt) { | |
if (evt.ctrlKey) { | |
window.$0 = evt.target; | |
window.s = angular.element($0).scope(); | |
evt.preventDefault(); | |
return false; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment