How to write global event(touch/click) handler in angular application?

457 views Asked by At

If angular application is not touched(mobile browser) or clicked for particular seconds, it should through a alert.
Can anyone help on this?

1

There are 1 answers

0
dev_in_progress On

Best way, if You use Angular js, is to use Ng-Idle.

Source with demoes and git repo: http://hackedbychinese.github.io/ng-idle/