In the latest version of ember, what is the best way to implement a backbutton functionality. I mean, not only using the browsers backbutton. I have my own backbutton in the top left corner of my application. If the previous page in the browsers history is outside my application, then I want to go to my applications main page instead. There are numerous suggestions on how to solve this out there, but they are rather old. How to do this properly in the latest version of ember?
I think the window.history.go(-1);
will not do it in all cases.
I guess I have to keep my own history stack? How do I hook into every transition to maintain the stack?
Aucun commentaire:
Enregistrer un commentaire