Last active
February 17, 2017 18:02
-
-
Save canac/b09e432689632198362c9e0291fe5c46 to your computer and use it in GitHub Desktop.
AngularJS injector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const injector = angular.element(document.querySelector('*[ng-app]')).injector(); | |
| window.injector = new Proxy({}, { | |
| get(target, property, receiver) { | |
| return injector.get(property); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment