Skip to content

Instantly share code, notes, and snippets.

@chbndrhnns
chbndrhnns / gist:87a1ab3c085c10e4b2f15ae8eb0f143c
Last active April 10, 2016 22:15
Angular console debugging
Get scope for selected element:
$($0).scope()
Get controller for a selected element:
$($0).closest('[ng-controller]').attr('ng-controller')
Source: http://eng.localytics.com/tips-and-tricks-for-debugging-unfamiliar-angularjs-code/