为什么AngularJS抛出错误的扩充
Why does AngularJS throw bad augmentation error
当我将src链接中angular的scr代码文件从1.2.2更改为1.5.0时,我一直收到错误,即代码与1.2.2配合得很好,但如果我将其更改为1.5.0
Error: ng:areq
Bad Argument
Argument 'Controller_index' is not a function, got undefined
Description
AngularJS often asserts that certain values will be present and truthy using a helper function. If the assertion fails, this error is thrown. To fix this problem, make sure that the value the assertion expects is defined and truthy. I know 1.2.2 is outdated but I am using the same thing and I don't know whats new in 1.5.0 and how to change it.As per my knowledge it looks fine to me.
该错误表示您尚未将Controller_index
注册为控制器。尝试添加:
module.controller('Controller_index', Controller_index);
这是1.2到1.3之间的突破性变化。
相关文章:
- Node.js v6.2.0类扩展不是函数错误
- Jquery菜单操作不稳定,定位不正确,存在一般错误
- document.open/document.write没有正确地清除chrome中的文档——这是chrome的错误吗
- 试图在引导模式内动态生成图表,得到offsetWidth错误
- 为什么会出现错误;未捕获的类型错误:undefined不是函数;
- 我如何修复包含在captcha的addthis中的错误
- 同样,同样的错误'ahorcado.js:26未捕获类型错误:无法读取属性'beginPath'
- 节点是否需要模块传递带有方括号的arg?这是个错误吗
- Webpack/Rect:遵循egghead.io教程,但出现错误:您可能需要一个合适的加载程序来处理此文件类型
- CKFinder 3为所选文件返回错误的URL
- 同位素库错误:未捕获错误无布局模式包装生产线8
- 铬:“;未捕获的语法错误:意外的标记:"
- 如何通过自己获得Chrome扩展的用户反馈/错误报告
- 相位器状态未捕获参考错误
- /undefined在我的404错误日志中多次出现
- Javascript未捕获语法错误意外的标识符错误
- javascript:如何在antlr生成的Lexer中进行错误处理
- Angularjs工厂注入错误
- 可以设置“;文件名"发生错误时显示的内联脚本标记的
- 为什么AngularJS抛出错误的扩充