Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 461 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 461 Bytes

NgTimedout

Logout of the angular app after idle timeout.

installation

npm install ng-timedout

Usage

Import in your angular applications app module

import {NgTimedoutModule} from 'ng-timedout';

then add to imports

NgTimedoutModule.forRoot()

Import service in components

import {TimedoutService} from 'ng-timedout/timedout-service';
constructor( private timedout: TimedoutService)
this.timedout.start(this.authService, 15000);