Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 492 Bytes

readme.md

File metadata and controls

18 lines (13 loc) · 492 Bytes

Developer Tools Tips

Obtain handles for app objects

var inject = angular.element(document.querySelector('*[ng-app]')).injector()
var polling = inject.get('PollingService')

iframes

document.querySelector("iframe").contentWindow.angular.element(document.querySelector("*[ng-app]")).injector()

// alt
var iframe = document.querySelector('iframe').contentWindow
var inject = iframe.angular.element(iframe.document.querySelector('*[ng-app]')).injector();