当 debugInfoEnabled 时,有一些方法可以从 angular.element()
获取 $scope
是禁用。
angular.element(document.querySelector('some-cool-element')).scope() // Undefined
最佳答案
angular.element($0).scope()
这是一个重复的问题
How do I access the $scope variable in browser's console using AngularJS?
关于javascript - 在关闭 debugInfo 的情况下从 angular.element 获取范围的一些方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47696617/