A module for detecting and responding to the user becoming idle in Angular applications.

Usage no npm install needed!

<script type="module">
  import sharegainltdNgIdleCore from 'https://cdn.skypack.dev/@sharegainltd/ng-idle-core';



This library was generated with Angular CLI version 8.0.0.

Code scaffolding

Run ng generate component component-name --project core to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project core.

Note: Don't forget to add --project core or else it will be added to the default project in your angular.json file.


Run ng build core to build the project. The build artifacts will be stored in the dist/ directory.


After building your library with ng build core, go to the dist folder cd dist/core and run npm publish.

Running unit tests

Run ng test core to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.