In chrome console window object working fine not in angular1 jsp code example
Example: scope in console
var scope = angular.element(document.body).scope();
scope.anyVariableName; // use it like this
var scope = angular.element(document.body).scope();
scope.anyVariableName; // use it like this