简体   繁体   English

为什么我的angularJS错误在firefox控制台和firebug中显示为这样?

[英]Why my angularJS errors are showing like this in the firefox console and firebug?

I'm working in an angularjs application but somehow this plugin 'smart-table' it's not being added to my app modules array but that's not the problem, I want to know why firefox and firebug show the error like this, and if there's a way to fix this 我正在使用angularjs应用程序,但是不知何故此插件“ smart-table”没有添加到我的应用程序模块数组中,但这不是问题,我想知道为什么firefox和firebug会显示这样的错误,以及是否存在解决这个问题的方法

this is how firefox and firebug show the error in the console. 这就是firefox和firebug在控制台中显示错误的方式。 I tried using only the firefox console without a firebug but it's the same they both show the error the same way 我尝试仅使用没有Firefox的firefox控制台,但这是相同的,它们都以相同的方式显示错误

why it appears all those percentage symbols and big letter cases 'F'? 为什么出现所有这些百分比符号和大写字母“ F”?

Error: [$injector:modulerr] http://errors.angularjs.org/1.4.8/$injector/modulerr?p0=SistemaActividades&p1=%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.4.8%2F%24injector%2Fmodulerr%3Fp0%3Dsmart-table%26p1%3D%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.4.8%252F%2524injector%252Fnomod%253Fp0%253Dsmart-table%250AG%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A6%253A416%250Ade%252F%253C%252F%253C%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A24%253A186%250Ab%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A23%253A251%250Ade%252F%253C%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A23%253A494%250Ag%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A38%253A117%250An%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A7%253A331%250Ag%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A37%253A488%250Ag%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A38%253A134%250An%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A7%253A331%250Ag%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A37%253A488%250Aeb%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A41%253A249%250Ayc%252Fc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A19%253A463%250Ayc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A20%253A274%250AZd%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A19%253A83%250A%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A294%253A192%250Ab%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A175%253A62%250AIf%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A35%253A365%250AHf%252Fd%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.8%252Fangular.min.js%253A35%253A314%250A%0AG%2F%3C%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.8%2Fangular.min.js%3A6%3A416%0Ag%2F%3C%40http%3A%2F%2F

This error is thrown by angular when it cant find the module that you are trying to pass, it is actually a link to angular docs that describe the error. 当找不到要传递的模块时,此错误由angular抛出,它实际上是描述该错误的angular文档的链接。

Try to check if the js of smart table is loaded before you pass to your app 尝试在传递给应用程序之前检查智能表的js是否已加载

load angular.js, than smarttable.js then use it 加载angular.js,然后再使用smarttable.js
angular.module('myApp',['smart-table']

That error happens when you have a dependency that you that you have not included the proper files for. 当您有一个依赖关系而您没有包括正确的文件时,就会发生该错误。 This can happen when using third-party modules that you find from repositories. 当使用从存储库中找到的第三方模块时,可能会发生这种情况。

Often times the module that you use will have it's own dependencies with it's own required files as well. 通常,您使用的模块将拥有自己的依赖关系以及自己的必需文件。 Just ensure that all your dependencies are fulfilled. 只需确保满足您的所有依赖性即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM