mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-14 08:53:21 +08:00
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()
...