Skip to content

Instantly share code, notes, and snippets.

@MathRobin

MathRobin/readme.md

Created Dec 30, 2015
Embed
What would you like to do?
Angular debug by console

Debugging AngularJS Apps from the Console

Access Scopes

angular.element(targetNode).scope();
angular.element(targetNode).isolateScope();

Grab any Services

angular.element(document.querySelector('html')).injector().get('MyService');

Access controller for directive

angular.element('my-pages').controller()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.