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

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

lenin david
1#
lenin david Published in 2017-12-07 13:52:22Z

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

angular.element(document.querySelector('some-cool-element')).scope() // Undefined
Corrot
2#
Corrot Reply to 2017-12-07 14:11:08Z

angular.element($0).scope()

This is a duplicate question for this one

How do I access the $scope variable in browser's console using AngularJS?

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO