title: Change idle duration at runtime in AngularJS Ng-Idle
body: <p>I am using ng-idle to detect inactivity.</p>
  
  <p>The <code>idleDuration</code> is set like so:</p>
  
  <pre><code>.config(function($idleProvider, $keepaliveProvider) {
              // configure $idle settings
              $idleProvider.idleDuration(5); // in seconds
              $idleProvider.warningDuration(5); // in seconds
              $keepaliveProvider.interval(2); // in seconds
          })
  </code></pre>
  
  <p>How can I change it at runtime in a controller or in a service?</p>
  
  <p>It is possible to inject the <code>$idle</code> service like so:</p>
  
  <pre><code>.controller('EventsCtrl', function($scope, $idle)
  </code></pre>
  
  <p>Unforunately <code>$idle</code> does not have a property for changing the <code>idleDuration</code>.</p>