ngIdleTimer

AngularJS Module to execute a function when no there's no user interaction after a predefined lapse.
Homepage:
0 people use it
Author: 9980879?v=3 nico-val

ngIdleTimer

AngularJS Module to execute a function when no there's no user interaction after a predefined lapse.

Installation

  1. Download latest release from here

  2. Include ngIdleTimer.js in your HTML.

  3. Inject the module in your app.

Usage

  1. Inject ngIdleTimer in your controller javascript angular.controller('myController',['ngIdleTimer',function(ngIdleTimer){ /* ... */ }]);

  2. Set your Idle Timer using javascript ngIdleTimer.onTimeOut(function, numSeconds); function is, of course, the function you wan't to be executed when no user interaction is detected after numSeconds seconds.

comments powered by Disqus
This page was last updated about 2 years ago.