angular/angular.js — pull request #814 by IgorMinar (2012-03-21 22:18:03+00:00)
Title: feat(jqLite): make injector() and scope() work with the document object

For typical app that has ng-app directive on the html element, we now can do:

angular.element(document).injector() or .injector()
angular.element(document).scope() or .scope()

instead of:

angular.element(document.getElementsByTagName('html')[0]).injector()
...