Angular JS Uncaught Error: [$injector:modulerr]

后端 未结 15 1833
攒了一身酷
攒了一身酷 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:44

    I had also same issue, I have just removed following line of code from BundleConfig.cs file and my code is working fine.

    BundleTable.EnableOptimizations = true;

提交回复
热议问题