I am working on a proof of concept using Angular JavaScript.
How to debug the Angular JavaScript code in different browsers (Firefox and Chrome) ?
var rootEle = document.querySelector("html");
var ele = angular.element(rootEle);
scope() We can fetch the $scope from the element (or its parent) by using the scope() method on the element:
var scope = ele.scope();
injector()
var injector = ele.injector();
With this injector, we can then then instantiate any Angular object inside of our app, such as services, other controllers, or any other object