title: AngularJS Error: [$injector:unpr] Unknown provider:
body: <p>I am getting an unknown provider error when attempting to launch an angular bootstrap modal window from my app by clicking on an image. I launch the same type of modal successfully elsewhere in the app.</p>
  
  <p><a href="http://i.imgur.com/Lqg16UX.png" rel="nofollow">Here is a screenshot of the error in the debugger</a></p>
  
  <p>Is there something wrong with my controller code below? I looked at several other unknown provider error posts on stack, and to my knowledge I'm doing things properly.</p>
  
  <pre><code>app.controller('ModalInstanceCtrl', function($scope, $modalInstance, items,
   removeVideoFromCart, removeLiteratureFromCart, productHasItems, cartItemHasVideos,
   cartItemHasLiterature, getCartMailToBody, cartMailtoLink, logSentItems) {
  
      $scope.items = items;
  
      $scope.ok = function() {
          $modalInstance.close($scope.test);
      };
  
      $scope.removeVideoFromCart = function (video, familyIndex, index) {
          removeVideoFromCart(video, familyIndex, index);
          $scope.cartMailtoLink = getCartMailToBody(); //update the mailto link body to remove video links
      }
  
      $scope.removeLiteratureFromCart = function (literature, familyIndex, index) {
          removeLiteratureFromCart(literature, familyIndex, index); 
          $scope.cartMailtoLink = getCartMailToBody(); //update the mailto link body to remove lit links
      }       
  
      $scope.cancel = function() {
          $modalInstance.dismiss('cancel');
      };
  
      $scope.productHasItems = function(index) {
          return productHasItems(index);
      }
  
      $scope.cartItemHasVideos = function(index) {
          return cartItemHasVideos(index);
      }
  
      $scope.cartItemHasLiterature = function (index) {
          return cartItemHasLiterature(index);
      }
  
      $scope.getCartMailToBody = function () {
          getCartMailToBody();
      }
      $scope.cartMailtoLink = getCartMailToBody();
  
      $scope.logSentItems = function () {
          logSentItems();
      }
  
  });
  </code></pre>
  
  <p>Thank you very much for your time. Let me know if you need more information or if I am being unclear.</p>