angularjs - Once I turn off debuggingData in angular, is there another way to get the rootscope? -
i think having debugging info on default in angular sink large apps. can disable in production:
https://docs.angularjs.org/guide/production#disabling-debug-data
but there cases do:
angular.element(document).scope()
in order access rootscope. there way in angular $rootscope without debugging feature on?
to access $rootscope
angular.element(document).injector().get('$rootscope')
Comments
Post a Comment