I am currently developing an angular app and wish to see my scope in the console.
I currently achieve this by typing angular.element($0).scope()
.
This works when i open the console by right clicking the page, selecting inspect, navigate to the console tab and enter the code above.
however the same line of code does not work when i open the console by using the browser shortcut.
why does this happen and how can i make it so that when i open the browser through a short cut the line of code works ?
Below i have provided screenshots of the console displaying the different outputs: https://i.stack.imgur.com/h5M8R.jpg
I have found a live website where this phenomenon also occurs so you can try it for yourself : https://www.google.com/partners/?hl=nl#a_profile;bdgt=;idtf=3245994249;lang=;locn=;motv=0