javascript - I keep getting Error: $injector:modulerr Module Error with AngularJS. -
i trying teach myself angular , keep getting error. wrote simple bit of code test out angular while following tutorial , keep getting error , angular not doing it's supposed do.
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
this code
<!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>
and js
var app = angular.module('store', []);
you have typo in script tag including app.js
-
text/javasciprt
instead of text/javascript
by way, there no need write text/javascript
@ all, according html5 standard.
Comments
Post a Comment