Automatically transition through list of routes?


#1

I’d like to transition through a few routes in my app on an interval. It would be like a ‘kiosk’ or ‘demo’ mode that would cycle through a set list of routes. Any ideas how I might implement that?


#2

My first thought would be a service that injects the router service and uses it to do the transitions with some sort of timer like Ember.run.later etc.


#3

In the last Ember Conf one of the speakers did exactly this. Created an ember application that allowed him to use the left and right arrow keys to navigate through a list of routes. The code that allowed him to do this is in his repo here: https://github.com/ef4/living-animation/blob/master/src/ui/routes/application/route.js Your timer then would have to nothing but send a key event of right arrow.