SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 179 JavaScript

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()
...
I
Igor Minar committed
5fdab52dd7c269f99839f4fa6b5854d9548269fa
Parent: 541bedd