get $scope variable 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