In AngularJS, we managed to call the digest loop, getting the ng-app element with something like
var scope = angular.element(element).scope(); scope.$apply(...);
I reviewed the solution for this in Angular (4+), but only found solutions that work in an application like ( Triggering Angular2 for manually detecting changes ). I need something that works from the console.
I am sure that I am doing it wrong, but trying to apply the answer to the above question did not help. I have tried many variations of this:
ng.probe($0).injector.view.root.ngModule.injector.get('ApplicationRef')
source share