Failed to instantiate module app due to://实例化失败
Error: [$injector:modulerr] http://errors.angularjs.org/1.6.6/$injector/modulerr?p0=n...)
at http://localhost:56500/Scripts/angular.min.js:7:76
at http://localhost:56500/Scripts/angular.min.js:43:70
at p (http://localhost:56500/Scripts/angular.min.js:8:7)
at g (http://localhost:56500/Scripts/angular.min.js:42:138)
at http://localhost:56500/Scripts/angular.min.js:42:322
at p (http://localhost:56500/Scripts/angular.min.js:8:7)
at g (http://localhost:56500/Scripts/angular.min.js:42:138)
at hb (http://localhost:56500/Scripts/angular.min.js:46:250)
at c (http://localhost:56500/Scripts/angular.min.js:22:19)
at Uc (http://localhost:56500/Scripts/angular.min.js:22:332

Description

This error occurs when a module fails to load due to some exception. The error message above should provide additional context.

A common reason why the module fails to load is that you've forgotten to include the file with the defined module or that the file couldn't be loaded.

当模块由于某些异常而无法加载时,会发生此错误。 上面的错误信息应该提供额外的上下文。

模块无法加载的常见原因是您忘记将文件包含在定义的模块中,或者该文件无法加载。

Using ngRoute

In AngularJS 1.2.0 and later, ngRoute has been moved to its own module. If you are getting this error after upgrading to 1.2.x or later, be sure that you've installed ngRoute.

在AngularJS 1.2.0及更高版本中,ngRoute已被移至其自己的模块。 如果在升级到1.2.x或更高版本后收到此错误,请确保已经安装了ngRoute。(若已安装,请确保正确引用)

Monkey-patching AngularJS's ng module

This error can also occur if you have tried to add your own components to the ng module. This has never been supported and from 1.3.0it will actually trigger this error. For instance the following code could trigger this error.

如果您尝试将自己的组件添加到ng模块,也可能会发生此错误。 这从未被支持,从1.3.0it将实际触发此错误。 例如,以下代码可能会触发此错误。

angular.module('ng').filter('tel', function (){});

Instead create your own module and add it as a dependency to your application's top-level module. See #9692 and #7709 for more information

你可以创建自己的模块,并将其作为依赖关系添加到应用程序的顶级模块中。 有关详细信息,请参阅#9692和#7709

最新文章

  1. TCP/IP协议
  2. Java的“友好的”访问指示符(修饰符)
  3. PHP 数据库抽象层pdo
  4. 登录成功返回登录前页面js代码
  5. MyEclipse 2014 + JSP+ Servlet
  6. javascript数组总结(0504)
  7. java基础(十七)集合(四)
  8. javascript之函数节流
  9. dell PowerEdge R720 自动重启分析
  10. C-重定向
  11. QR代码简单
  12. [转]Patching the Mach-o Format the Simple and Easy Way
  13. c语言,字符串原地翻转
  14. Java IO学习笔记七
  15. HBase shell 命令介绍
  16. 原生Ajax用法——一个简单的实例
  17. 学习React系列(二)——深入了解JSX
  18. redis对键进行的相关操作
  19. zkclient中包引用不对,导致NoSuchMethodError
  20. CF Manthan, Codefest 16 B. A Trivial Problem

热门文章

  1. linux中sort、uniq、cut、tr、wc命令的使用
  2. 今天记录一下h5跳转小程序,可以通过短信推广小程序
  3. SpringBoot系列——防重放与操作幂等
  4. QT-图标设置
  5. 1903021116—吉琛—Java第七周作业—客户类测试
  6. 苹果手机Safri浏览器 js 解析问题
  7. HashMap源码理解一下?
  8. 浅尝Spring注解开发_自定义注册组件、属性赋值、自动装配
  9. java高级用法之:JNA中的Memory和Pointer
  10. 从 rails 窥探 web 全栈开发(零)