Although 1.5 years late, i suggest using AngScope<https://addons.mozilla.org/en-US/firefox/addon/angscope-simple-angularjs-s/>, a small Firefox/Firebug extension that basically automates the above procedure.
On Friday, June 1, 2012 6:13:54 PM UTC+3, ganaraj P R wrote: > > You can go to the part of the html which is governed by that controller. > > RIght click there and say inspect html.. > > Now go to your console. > > In the console > > $0 represents your current selected element > > > in the console type > > > angular.element($0).scope() > > That will give you the scope for that element.. > > > > On Fri, Jun 1, 2012 at 4:05 PM, Renan T. Fernandes > <[email protected]<javascript:> > > wrote: > >> put window.scope = $scope on your controller, so you can play with it on >> firebug(don't know if is there a best way) >> >> >> 2012/6/1 Alexander Wilms <[email protected] <javascript:>> >> >>> In Firebug I can use the DOM panel to review the current status of the >>> global Javascript variables, but I can't see the contents of everything I >>> have defined in $scope. How can I access the content of $scope during >>> program runtime for analysis? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "AngularJS" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/angular/-/komI-GKeyA0J. >>> To post to this group, send email to [email protected]<javascript:> >>> . >>> To unsubscribe from this group, send email to >>> [email protected] <javascript:>. >>> For more options, visit this group at >>> http://groups.google.com/group/angular?hl=en. >>> >> >> >> >> -- >> Renan Fernandes(aka "ShadowBelmolve") >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To post to this group, send email to [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/angular?hl=en. >> > > > > -- > Regards, > Ganaraj P R > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
