Created
          June 22, 2016 15:33 
        
      - 
      
 - 
        
Save bdkosher/a11686a435a3f88355eef03b541d987c to your computer and use it in GitHub Desktop.  
    Snippet for programmatically accessing services/factories defined in AngularJS in Chrome DevTools' console
  
        
  
    
      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
    
  
  
    
  | // http://stackoverflow.com/questions/15527832/how-can-i-test-an-angularjs-service-from-the-console | |
| angular.element(document.body).injector().get('DocumentSvc'); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment