Created
April 16, 2014 10:21
-
-
Save pads/10848128 to your computer and use it in GitHub Desktop.
Angular Dependency Injection - Console Access
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
var injector = angular.element('[data-ng-app="myAppName"]').injector(); | |
var dependency = injector.get('myDependencyName'); | |
dependency.doSomething(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment