私は角度を教えようとしていますが、私は間違いを続けています。私はチュートリアルの後に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
これはあなたがあなたの中にapp.js
を含むスクリプトタグタイプミスを持っている私のコード
<!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のパスがscriptタグで正しいことを確認できますか? – TSmith