Home Some way to get Scope from angular.element with debugInfo turned off
Reply: 0

Some way to get Scope from angular.element with debugInfo turned off

user244
1#
user244 Published in April 22, 2018, 12:39 am

There is some way to get $scope from angular.element() when the debugInfoEnabled is Disable.

angular.element(document.querySelector('some-cool-element')).scope() // Undefined
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302105 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO