title: How inject $stateProvider in angular application?
body: <p>I try to use <a href="http://angular-ui.github.com/">angular-ui</a>, and try to inject $stateProvider:</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular-resource.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js"&gt;&lt;/script&gt;
      &lt;script src="test/appModule.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div ng-app="appModule"&gt;
          &lt;div ng-controller="appController"&gt;
              {{date}}
          &lt;/div&gt;
  
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>js (test/appModule.js)</strong></p>
  
  <pre><code>var module = angular.module("appModule", ['ui.router']);
  
  module.controller('appController', ['$scope', '$stateProvider',
      function ($scope, $stateProvider) {
          $scope.date = new Date();
      }]);
  </code></pre>
  
  <p><strong>stack trace</strong></p>
  
  <pre><code>Error: Unknown provider: $stateProviderProvider &lt;- $stateProvider
      at Error (native)
      at https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js:28:236
  ...
  </code></pre>
  
  <p>If I remove <em>$stateProvider</em> and <em>ui.router</em> with comments everything will work:</p>
  
  <pre><code>var module = angular.module("appModule"/*, ['ui.router']*/);
  module.controller('appController', ['$scope'/*, '$stateProvider'*/,
      function ($scope, $stateProvider) {
          $scope.date = new Date();
      }]);
  </code></pre>
  
  <p>So the problem with injection <em>$stateProvider</em> any ideas about resolving?</p>
  
  <p><strong>P.S.</strong> I have tried <a href="http://angular-ui.github.io/ui-router/sample/#/">ui sample</a> it works, but I cannot figure out why mine does not.</p>