Aside from using IdleJS and ngDoCheck(), how can we detect user inactivity in Angular 5? Thanks
A possible solution is to use this package angular-user-idle
I have not used it in real application but might be slightly more robust than the solution proposed in the previous answer.