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

feat: Feature Request: transitions to root page #6372

Closed
rdesimone opened this issue Apr 29, 2016 · 5 comments
Closed

feat: Feature Request: transitions to root page #6372

rdesimone opened this issue Apr 29, 2016 · 5 comments

Comments

@rdesimone
Copy link

Type: feat

Ionic Version: 2.x

Platform: android 5.1 webview

It would be nice to have an option which allows to get transitions when navigating to the root page. Could be especially useful when using a toolbar in the navbar. Something like this: nav.setRoot(Page, {animate: true});

@brandyscarney
Copy link
Member

This is currently possible using the following:

this.nav.setRoot(Page, {}, {animate: true, direction: 'forward'});

The second param is any parameters to pass to the next view. See the NavController docs.

Is this what you're looking for?

@rdesimone
Copy link
Author

@brandyscarney thanks a lot, this works!

Can this be used somehow to solve #5101 to get transitions for tab changes (Android)? Something like (click)="foo()" on an ion-tab and afterwards setting the new root page like described above.

@rdesimone
Copy link
Author

@brandyscarney thanks again - forget the tab question - I think these are different stories.

Maybe some documentation is needed regarding the option param but otherwise the issue can be closed.

@brandyscarney
Copy link
Member

@rdesimone Awesome! I created an issue to add better documentation behind it here: #6372

Going to close this. 😄

@rdesimone
Copy link
Author

@brandyscarney I would like to come back on my question from above. Is is possible to control somehow the tab change with setRoot. Selecting an ion-tab will not automatically change the tab. The change will happen when setRoot is called. This is related to #5101. Thanks a lot for your help!

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants