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

前端 未结 7 1699
醉话见心
醉话见心 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:22

    In developer console type angular.element('body').scope(); in case of your app is

提交回复
热议问题