如何调试角[$喷油器:modulerr]错误 [英] How to debug angular [$injector:modulerr] errors
本文介绍了如何调试角[$喷油器:modulerr]错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个不断增长的角度应用。不时,我把事情弄得一团糟,并得到类型的错误:
I have a growing angular application. From time to time, I mess things up and get an error of the type:
[$injector:modulerr] Failed to instantiate module App due to:
它往往是很困难的基础上,错误消息以找到该错误,尤其是如果有与各种控制器等多个文件
It is often very difficult to find the error based on the error message, especially if there are many files with various controllers etc.
有没有办法来调试运行在Chrome或Firefox这些错误?
Is there a way to debug these errors in either Chrome or Firefox ?
推荐答案
<一个href=\"http://stackoverflow.com/questions/21110120/minified-angularjs-gives-me-unreadable-errors#comment31760167_21110120\">Minified AngularJS让我无法读取错误
...使用在发展中的unminified版本,使其更容易调试。
... Use the unminified version in development to make it easier to debug.
这篇关于如何调试角[$喷油器:modulerr]错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文