title: "Uncaught Error: [$injector:unpr]" with angular after deployment
body: <p>I have a fairly simple Angular application that runs just fine on my dev machine, but is failing with this error message (in the browser console) after I deploy it:</p>
  
  <p><code>Uncaught Error: [$injector:unpr] http://errors.angularjs.org/undefined/$injector/unpr?p0=tProvider%20%3C-%20t%20%3C-%20%24http%20%3C-%20%24compile</code></p>
  
  <p>No other message besides that. It happens when the page first loads.</p>
  
  <p>I'm running ASP.NET MVC5, Angular 1.2RC3, and pushing to Azure via git. </p>
  
  <p>Googling hasn't turned up anything interesting. </p>
  
  <p>Any suggestions?</p>
  
  <p>EDIT:</p>
  
  <p>I'm using TypeScript, and defining my dependencies with the <code>$inject</code> variable, e.g.:</p>
  
  <pre><code>export class DashboardCtrl {
  
      public static $inject = [
          '$scope',
          '$location',
          'dashboardStorage'
      ];
  
      constructor(
          private $scope: IDashboardScope,
          private $location: ng.ILocationService,
          private storage: IDashboardStorage) {
      }
  }
  </code></pre>
  
  <p>I believe that should (or is intended to) get around the local variable renaming problems that arise during minification and that can cause this error.</p>
  
  <p>That said, it clearly has something to do with the minification process, as when I set <code>BundleTable.EnableOptimizations = true</code> on my dev machine, I can reproduce it.</p>