H W
H W

Reputation: 2586

Finding angular $scope in firebug

Can i see the angular-$scope in Firebug (i searched in the DOM Inspector) without typing

angular.element($0).scope();

in the console every time?

Upvotes: 0

Views: 364

Answers (2)

nicolascolman
nicolascolman

Reputation: 579

There is an extension called AngScope. It allows you to inspect the scope in your web application. All you need is Firebug but you already have it. I hope you find it useful.

Upvotes: 1

Bhojendra Rauniyar
Bhojendra Rauniyar

Reputation: 85575

angular.element($0).scope(); shows the scope for currently picked element from inspector. To get desired element's scope, do like this:

 angular.element('button').scope();
 //replace button with your desired element as you do in normal css for eg. .my-class

Upvotes: 0

Related Questions