how to debug the $rootScope object of angularjs in the browser

前端 未结 7 1698
醉话见心
醉话见心 2021-01-29 23:43

Is there a way of debugging the angularjs application when it is loaded in the browser?

ie. I wish to get the $rootScope of my current application. How woul

7条回答
  •  天涯浪人
    2021-01-30 00:36

    Just wanted to add that there is a free Chrome Extension called "Angular Scope Inspector" (current store url) that will automatically inspect scope of selected elements in the developer tools elements tab

    I just discovered it today, and it's very useful, IMO

提交回复
热议问题