Ionic-framework: feat: Feature Request: transitions to root page

Created on 29 Apr 2016  路  5Comments  路  Source: ionic-team/ionic-framework

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});

Most helpful comment

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?

All 5 comments

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?

@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.

@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.

@rdesimone Awesome! I created an issue to add better documentation behind it here: https://github.com/driftyco/ionic/issues/6372

Going to close this. :smile:

@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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manucorporat picture manucorporat  路  3Comments

danbucholtz picture danbucholtz  路  3Comments

fdnhkj picture fdnhkj  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments

gio82 picture gio82  路  3Comments