angularjs get scope of a element 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