Angular 5, how to detect user inactivity

前端 未结 3 1258
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 05:57

Aside from using IdleJS and ngDoCheck(), how can we detect user inactivity in Angular 5?

Thanks

3条回答
  •  逝去的感伤
    2021-02-06 06:43

    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.

提交回复
热议问题