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

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

This is the code in my index.html






        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 02:49

    I have to link you to AngularJS documentation

    Angularjs $injector::nomod

    which basically says that your module should be defined as:

    angular.module('myApp',[]);
    

提交回复
热议问题