Call AngularJS from legacy code

Interop from outside of angular to angular is same as debugging angular application or integrating with third party library. For any DOM element you can do this: angular.element(domElement).scope() to get the current scope for the element angular.element(domElement).injector() to get the current app injector angular.element(domElement).controller() to get a hold of the ng-controller instance. From the injector … Read more