title: AngularJS error [$injector:unpr] Unknown provider: in IE11 with Minified JS
body: <p>I am using angularjs and want cross browser compatbility. It works fine in Chrome and firefox but in IE11 it is giving.
  <a href="https://i.stack.imgur.com/nvsYY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nvsYY.png" alt="enter image description here"></a></p>
  
  <pre class="lang-js prettyprint-override"><code>angular
    .module('app')
    .factory('AgencyFactory', AgencyFactory)
    .factory('AdminService', adminService);
  adminService.$inject = ['$resource'];
  
  
  function adminService($resource) {
    return {
      UpdateLeadStatus:
  
        $resource('/Agency/UpdateLeadStatus/Ids/:Ids/StatusId/:StatusId/ProducerId/:ProducerId', {}, {
          change: {
            method: 'POST',
            params: {},
            isArray: false
          }
        }),
      AssignProducer: $resource('/Agency/AssignProducer/AutoAssign/:AutoAssign', {}, {
        change: {
          method: 'POST',
          params: {},
          isArray: false
        }
      }),
      UpdateProducerAssignedStatus: $resource('/Agency/UpdateProducerAssignedStatus/Ids/:Ids/Status/:Status/AutoAssign/:AutoAssign', {}, {
        change: {
          method: 'POST',
          params: {},
          isArray: false
        }
      }),
  
  
    };
  }
  
  
  AgencyFactory.$inject = ['AdminService', '$uibModal', 'modalService', '$rootScope'];
  
  function AgencyFactory(AdminService, $uibModal, modalService, $rootScope) {
  
  
  
    function UpdateLeadStatus(Ids, StatusId, ProducerId) {
      return AdminService.UpdateLeadStatus.change({
        Ids: Ids,
        StatusId: StatusId,
        ProducerId: ProducerId
      }).$promise;
    }
  
    function AssignProducer(AutoAssign) {
      return AdminService.AssignProducer.change({
        AutoAssign: AutoAssign
      }).$promise;
    }
  
    function UpdateProducerAssignedStatus(Ids, Status, AutoAssign) {
  
      return AdminService.UpdateProducerAssignedStatus.change({
        Ids: Ids,
        Status: Status,
        AutoAssign: AutoAssign
      }).$promise;
    }
  
    return {
  
  
      UpdateLeadStatus: UpdateLeadStatus,
      AssignProducer: AssignProducer,
      UpdateProducerAssignedStatus: UpdateProducerAssignedStatus,
    };
  }
  })();
  </code></pre>
  
  
  
  <p>When I use un-minified code it works fine, but when I minify it, it shows the Error</p>