Rails 3 + angularjs + minification does not work in production: Unknown provider: eProvider

前端 未结 3 761
别那么骄傲
别那么骄傲 2021-02-02 11:30

I\'ve followed all the instructions I can find for fixing minification, e.g.

var MyController = function(renamed$scope, renamedGreeter) {
...
}
MyController.$inj         


        
3条回答
  •  走了就别回头了
    2021-02-02 11:52

    Make sure to apply the DI pattern to ALL function definitions that require injection within your module. It can be easy to miss one. If you're using a routeProvider, factory, services, etc., they all need to have the DI pattern applied. I ended up deploying multiple times before I caught them all :P

提交回复
热议问题