title: angular ng-idle not working, unknown provider
body: <p>in my index.html, I include the file as</p>
  
  <pre><code>&lt;script src="vendor/angular-idle.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and in app.js</p>
  
  <pre><code>angular.module('app', [ uirouter,
                          routing,
                          angularResource,
                          localStorage,
                          home,
                          activity,
                          'chart.js',
                          'ngAnimate',
                          'rzModule',
                          'ui.bootstrap',
                          jsonService,
                          otherService,
                          customers,
                          'angularUtils.directives.dirPagination',
                          notifications,
                          'textAngular',
                          'ngSanitize',
                          'MassAutoComplete',
                          material,
                          countrySelect,
                          'ngIdle'
                        ])
  </code></pre>
  
  <p>and the config file</p>
  
  <pre><code>.config(function(IdleProvider) {
          IdleProvider.idle(5);
          IdleProvider.timeout(5);
      })
      .run(['Idle', function(Idle){
          // start watching when the app runs. also starts the Keepalive service by default.
          Idle.watch();
      }])
      .controller('ctrl', function($scope) {
          $scope.$on('IdleTimeout', function() {
              let time = new Date();
              console.log('idle timeout at ', time);
          });
  
          $scope.$on('IdleStart', function() {
              let time = new Date();
              console.log('idle start at ', time);
          });
      })
  </code></pre>
  
  <p>but browser always says </p>
  
  <p>angular.min.js:117Error: [$injector:unpr] <a href="http://errors.angularjs.org/1.5.6/" rel="nofollow">http://errors.angularjs.org/1.5.6/</a>$injector/unpr?p0=tProvider%20%3C-%20t%20%3C-%20ctrl</p>
  
  <p>Unknown provider: tProvider &lt;- t &lt;- ctrl</p>