Skip to content

Instantly share code, notes, and snippets.

@allenhwkim
Created April 26, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allenhwkim/5c1a6ebe7628de1582df to your computer and use it in GitHub Desktop.
Save allenhwkim/5c1a6ebe7628de1582df to your computer and use it in GitHub Desktop.
Javascript To set see scope easily in console with CTRL-click
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