-1

I am using angular 6 and want to implement the idle timeout to an error page. How do I do it?

Also need to reset the time for any Interruptions like click, scroll etc.

ng2-idle doesn't seem to be active, I have installed it but it's not recognized in the vs code.

Sanjeev R
  • 1
  • 1
  • 2

1 Answers1

1

You can use the angular-user-idle package which works with angular 6. And its also properly documented so it should be easier for you to use.

https://www.npmjs.com/package/angular-user-idle

Muhammad Kamran
  • 978
  • 6
  • 10
  • getting the follwoing error Uncaught TypeError: Object(...) is not a function at Object../node_modules/angular-user-idle/fesm5/angular-user-idle.js – Sanjeev R Oct 23 '18 at 20:36
  • Seems you'll need to update your rxjs version to work around this – vofili Jun 01 '19 at 12:55