“Uncaught Error: [$injector:unpr]” with angular after deployment

后端 未结 7 1235
灰色年华
灰色年华 2020-11-30 21:45

I have a fairly simple Angular application that runs just fine on my dev machine, but is failing with this error message (in the browser console) after I deploy it:

7条回答
  •  忘掉有多难
    2020-11-30 22:12

    If you have separated files for angular app\resources\directives and other stuff then you can just disable minification of your angular app bundle like this (use new Bundle() instead of ScriptBundle() in your bundle config file):

提交回复
热议问题