Disable view transition for specific page


#1

Hi all,

I would like to disable the “slide in from the right” transition when navigation from a specific page to another. I would like to include this transition on all other page 1 -> page 2 transitions.

Is this possible?

Ta!


#2

Take a look at nav-transition if you want/can do it from the template:
http://ionicframework.com/docs/api/directive/navTransition/

Or look at $ionicHistory.nextViewOptions if you want to transition from code:
http://ionicframework.com/docs/api/service/$ionicHistory/

Call $ionicHistory.nextViewOptions just before $state.go(“newstate”);


#3

Oh cool nice one thank you :slight_smile:


#4

Just replying to say this worked perfectly, thank you.