我一直收到错误:$injector:模块rr模块错误与AngularJS
I keep getting Error: $injector:modulerr Module Error with AngularJS.
我试图自学Angular,但我总是得到一个错误。我写了一段简单的代码来测试Angular,同时遵循教程,但我不断收到此错误,并且Angular没有做它应该做的事情。
angular.min.js:6Uncaught Error: [$injector:modulerr]
http://errors.angularjs.org/1.5.7/$injector/modulerr?
0%20%20at%20c%20(http%3A%2F%2F127.0.0.1%3A8080%2Fangular.min.js%3A20%3A359)(anonymous function) @ angular.min.js:6(anonymous function) @ angular.min.js:40r @ angular.min.js:7g @ angular.min.js:39db @ angular.min.js:43c @ angular.min.js:20Bc @ angular.min.js:21ge @ angular.min.js:19(anonymous function) @ angular.min.js:315b @ angular.min.js:189Sf @ angular.min.js:37d @ angular.min.js:36
这是我的代码
<!DOCTYPE html>
<html ng-app='store'>
<head>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
</head>
<body>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javasciprt" src="app.js"></script>
<p>{{"hello" + " you"}}</p>
</body>
</html>
和 JS
var app = angular.module('store', []);
您的脚本标记中有拼写错误,其中包括app.js
-
text/javasciprt
而不是text/javascript
顺便说一下,根据html5标准,根本不需要编写text/javascript
。
ng-app='store' give in body tag。
<body ng-app='store'> </body>
相关文章:
- 错误:$injector:modulerr模块错误(我的第一个SPA应用程序)
- 因果报应-找不到模块:错误:无法解析模块'scs'
- NgRoute未加载(模块错误)
- AngularJS错误:$injector:modulerr我的浏览器窗口中出现模块错误
- 无法实例化Angular js中的模块错误
- AngularJS打字稿从模块错误导出类
- AngularJS 1.3 - 错误:错误:modulerr 模块错误(使用 ng-view,$routeProvide
- AngularJS - $injector:modulerr 模块错误在 angular.js:36.
- 角度 JavaScript 缩小导致错误:$injector:modulerr 模块错误
- 角度$injector:模块rr模块错误
- JS2咖啡投掷找不到模块错误
- Heroku + 节点:找不到模块错误
- 木偶模块错误
- 角度错误:$injector:模块rr模块错误
- "现在无法切换到旧模式“-tls.connect函数中出现Node.JS apn模块错误
- 角度模块错误
- 在node.js下运行UglifyJS生成找不到模块错误
- AngularJS上不断出现注入模块错误
- AngularJS 1.4.8$injector:Modulerr模块错误
- sitefinity 6-事件模块错误javascript