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
1 |
ember install ember-user-activity |
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.