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

后端 未结 7 1205
灰色年华
灰色年华 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:22

    Add the $http, $scope services in the controller fucntion, sometimes if they are missing these errors occur.

提交回复
热议问题