Hello,
sorry for my English, as it is not my mother tongue.
I am having problems with router component:
Is there a way to navigate to a new route closing all open pages but the first?
I mean, if I have a strack of pages, like:
- home page -> sheet 1 -> sheet 2 -> sheet 3
from a button in sheet 3 i want to transition to this state:
- home-page -> sheet X.
app.views.main.router.navigate(newroute, {clearPreviousHistory:true});
closes all previous pages, including home page. Sheet X is displayed, but i can’t go back to home.
I have tried other approaches, like that:
app.views.main.router.navigate('/', {force:true}); app.views.main.router.navigate(newroute, {force:true});
but this way, app remains in the home page. I guess it is a synch issue (I am navigating to newroute when the navigation to ‘/’ is not complete).
Thanks in advance, i would appreciate any help!