Angular JS Uncaught Error: [$injector:modulerr]

后端 未结 15 1825
攒了一身酷
攒了一身酷 2020-12-09 01:08

I am having a problem with Angular JS receiving an error : Uncaught Error: [$injector:modulerr]. My JS-file looks

angular.module(\'MyApp\', [\'ngRoute\']);
         


        
15条回答
  •  既然无缘
    2020-12-09 01:43

    ok if you are getting a Uncaught Error: [$injector:modulerr] and the angular module is in the error that is telling you, you have an duplicate ng-app module.

提交回复
热议问题