title: Error after Minification of angular js. Error: [$injector:unpr] Unknown provider: eProvider <- e <- makeErrorsDirective
body: <p>I used Gulp to minify my entire js files. Once minified I got an error like  the following: </p>
  
  <pre><code>[$injector:unpr] Unknown provider: eProvider &lt;- e &lt;- makeErrorsDirective.
  </code></pre>
  
  <hr>
  
  <p>I had a Custom directive in my controller file.</p>
  
  <pre><code>var myhubdashboardControllers = angular.module('vpdashboardmodule', []);
  
  .directive('mhDashboard', function ($http, authService, apiService) {
      return {
          restrict: 'EA',
          scope: {
              name: '@',
              dash: '@',
              report: '@',
              disname: '@',
              disdesc: '@',
              distot: '@'
          },
          templateUrl: 'views/dashboard/dashboard-direc.html',
          link: function (scope, element, attr) {
              scope.linkChk = scope.name;
              switch (scope.linkChk) {
                  case 'Shipped This Week':
                      scope.url = 'erp/JobShipmentList/PostCpsVwShipmentCount';
                      scope.shipstatus = "Departure";
                      scope.period = "ThisWeek";
                      scope.basicfilter = "Open";
                      scope.linkName = "Shipments";
                      scope.linkDesc = "Shipped This Week";
                      break;
  </code></pre>
  
  <p>})
  };</p>
  
  <p>This is the code used in my application.</p>