The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Accessing Services from Console

Accessing Services from Console

2:39
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.
Watch this lesson now
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?