Angular JS, 'nomod',Module '{0}' is not available! You either misspelled

后端 未结 3 1468
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 02:16

This is the code in my index.html






        
3条回答
  •  佛祖请我去吃肉
    2021-01-03 02:47

    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 to

提交回复
热议问题