How can I modify the the navPush in a way that new pages enter from the right instead of from the bottom? (there should be some parameters but I didn't find them inside the ionic docs
Thanks!
You can do that by setting the animate
property. The only problem is that the push
method only could be animated
{ animate: true, direction: 'forward' }
{ animate: true, direction: 'back' }
You can still use the setRoot()
method like this to achieve the animation you're looking for:
this.navCtrl.setRoot(Page1, {}, { animate: true, direction: 'forward' });
Please find more information in this page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With