Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get into a route and clear all routes other than the first route before then? #2230

Closed
marlti7 opened this issue Aug 14, 2017 · 4 comments

Comments

@marlti7
Copy link

marlti7 commented Aug 14, 2017

for example: A > B >C > D;
when i want C to D, when i get into d, clean B and C, so I can pop to A when i go back user phone home back button

@abeltje1
Copy link

I think you could use type='replace' to achieve this, not sure though.

When navigation from B to C, you'd use type='replace' and from C to D again. Then I think you can use pop to go from D to A.

once again: not sure.

@aksonov
Copy link
Owner

aksonov commented Aug 14, 2017

You can use popTo('A'), check Example project

@abeltje1
Copy link

But he wants to control the 'user phone home back button', which I think is the back button on android. Is it even possible to bind popTo to that button?

@aksonov
Copy link
Owner

aksonov commented Aug 14, 2017

Oh, I see now. Then yes, you could try pop & replace.

@aksonov aksonov closed this as completed Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants