get scope from window angularjs code example Example: angular access current scope from console angular.element($0).scope()