如何使用AngularJS在瀏覽器的控制檯中訪問$ scope變量?

問題:

I would like to access my $scope variable in Chrome's JavaScript console. 我想在Chrome的JavaScript控制檯中訪問$scope變量。 How do I do that? 我怎麼作? 瀏覽器

I can neither see $scope nor the name of my module myapp in the console as variables. 我既看不到$scope也看不見控制檯中個人模塊myapp的名稱做爲變量。 app


解決方案:

參考一: https://stackoom.com/question/vfCE/如何使用AngularJS在瀏覽器的控制檯中訪問-scope變量
參考二: https://oldbug.net/q/vfCE/How-do-I-access-the-scope-variable-in-browser-s-console-using-AngularJS
相關文章
相關標籤/搜索