Before AngularJS 1.3 there was a simple method of doing this (angular.element(node).scope()
) but now with $compileProvider.debugInfoEnabled(false);
this way of accessing scope is no longer working. Is there another simple solution?
Asked
Active
Viewed 142 times
2
-
2What's the use case for needing to access scope by element? Perhaps need a directive to do the reverse. Please show some code – charlietfl May 06 '15 at 14:17
-
I need to access angular app from legacy JavaScript code. This is the same problem as here: http://stackoverflow.com/questions/10490570/call-angular-js-from-legacy-code but with angular 1.3 – Bodzio May 06 '15 at 14:23
-
More details of what your legacy code is doing would help if you are wanting a workaround – charlietfl May 06 '15 at 14:50