This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Accessing Services from Console

2:39 Angular 1.x lesson by

Using the Chrome console, you can access your AngularJS injectable services. This is down and dirty debugging, and can be a lifesaver in troubling times.


egghead.io comment guidelines

Avatar
egghead.io

Using the Chrome console, you can access your AngularJS injectable services. This is down and dirty debugging, and can be a lifesaver in troubling times.

Avatar
Qualitype GmbH

I've tried that, but that give me this error:

Uncaught TypeError: angular.element(...).$injector is not a function
at :2:37
at Object.InjectedScript.evaluateOn (:905:140)
at Object.InjectedScript.
evaluateAndWrap (:838:34)
at Object.InjectedScript.evaluate (:694:21)

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?