Ionic 2 setRoot animation


#1

Hi everyone!

i have an issue with nav.setRoot() and the animation type. I’ve enabled animation by passing the opt object:

{
    animate: true,
    direction: 'enter'
}

the vanigation correctly send user to the right root page, the animation is shown, but the issue is that is shown the iOs (slide) animation for all platforms, what can i do?


My system information:

Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS: Windows 10
Node Version: v5.9.1


#2

At the moment, this isn’t something that can be set. It’s on our list of TODOS though


#4

I don’t know if it’s fixed yet. But a work around for animation could be to insert it below and pop to it:

     this._nav.insert(0, LoginPage)
     this._nav.pop()