Unknown Provider e-provider error while using angularjs and ruby on rails

前端 未结 3 776
滥情空心
滥情空心 2021-01-03 20:45

I have a Rails/AngularJS app which works fine in local development environment. However, when I deployed this app to Amazon Cloud the AngularJS returns this error in the bro

3条回答
  •  太阳男子
    2021-01-03 21:23

    in my case

    app.config(function ($stateProvider) {
      $stateProvider
        .state('A', {
          ...,       
        });
    });
    

    was changed to

    app.config(["$stateProvider", function ($stateProvider) {
      $stateProvider
        .state('A', {
          ...,       
        });
    }]);
    

    then minification works

提交回复
热议问题