How to clear onsen ui page stack?
-
Hi,
I am incorporating a “sign out” feature. I want to clear out the entire onsen DOM/page stack so that the user is not taken to previous page when user clicks the back button.
Thanks for your help!
-
-
Jamal,
resetTopage() requires a ons navigator. I want to clear navigator too.
Thanks
-
@mmike, did you try it?
I assume you have a sign-in page (first page) and that’s where you want to go back to.
-
any solution for this? I am facing problem on the same.
-
I don’t know why are you trying to clear onsen DOM, but if you want to clear page stack, you can do this
location.href = 'index.html';