What I want to do is to check if the user of my Ember application is in idle mode in the browser, and if so I want to implement some rules. Please check the following example.
if (User is idle)
transition to template1
else
transition to index
I need to do this for every template of my application.
Can anyone please suggest a solution or an example for this example?