如何调试此 AngularJS 代码?
如何调试此 AngularJS 代码?
当angular内部出现错误时,我似乎无法进行调试。我有这段代码:
它抛出以下错误:
angular.js:38Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.6/$injector/modulerr?p0=campaign_listing&p1…ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.6%2Fangular.min.js%3A19%3A463) And without the minified version: Uncaught Error: [$injector:modulerr] Failed to instantiate module campaign_listing due to: Error: [$injector:modulerr] Failed to instantiate module $http due to: Error: [$injector:nomod] Module '$http' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.4.6/$injector/nomod?p0=%24http
我没有使用路由,所以那个链接实际上让我感到困惑。
有人能告诉我问题是什么以及如何在未来调试它吗?
admin 更改状态以发布 2023年5月21日