In AngularJS we were able to trigger a digest cycle by getting the ng-app element with something like
var scope = angular.element(element).scope();
scope.$apply(...);
I have looked all over for a solution to do this in Angular(4+) but have only found solutions that work in the app like(Triggering Angular2 change detection manually). I need something that works from the console.
I'm sure I'm doing it wrong but trying to apply the answer on the above question didn't work. I tried many variations of this:
ng.probe($0).injector.view.root.ngModule.injector.get('ApplicationRef')