#26 User Idleness

Tip

You know how some banking websites pop out a message if you have been idle for X minutes that they are about to log you out.  Here is the “ember way” to do this.
Install the Ember User Activity addon

Then simply inject the service in your controller:

You can do a lot more with this addon and you can change the idle timeout (default is 10 minutes).

Cerdit

Ember User Activity addon – https://github.com/elwayman02/ember-user-activity

Some Love ❤❤❤

If you are enjoying my daily tips please spread the word with this one-click tweet.
If you do NOT like the tips then please reply to this email and let me know.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu