This is the code in my index.html
well it happened to me too today - looking for answers no one said the reason i had. just misspelled the word function (can be anything else) and that caused the whole module not to load.
Shlomi
Well, I don't see any sort of angular bootstrapping file, so it looks like you don't have a module yet, so the error makes sense. Make an app.js
file, and place this in it
var app = angular.module('app',
[
// you'll use this space later, for stuff like ngRoute and ngResource,
]);
then load the file in your html and change <html ng-app="">
to <html ng-app="app">
I have to link you to AngularJS documentation
Angularjs $injector::nomod
which basically says that your module should be defined as:
angular.module('myApp',[]);