How can I provide nav-transition and nav-direction in $state.go()
$state.go('myState', {
navTransition:'android',
'navDirection':'forward'
});
Is it necessary to use $state.go
or could you perhaps use ui-sref:
<div ui-sref='myState' nav-direction="forward" nav-transition='android'>Some element</div>
@drewrygh No I need to do this dynamically. Can you ask @adamdbradley if there is some option to do this?
And also can you reply back to this? https://github.com/driftyco/ionic/issues/2613
+1
Try this:
$ionicViewSwitcher.nextDirection('forward'); // 'forward', 'back', etc.
$state.go('myState');
ui-router does not allow options like this.
it`s work @mpostma
+1 @mpostma
By the way, isn't there a way to specify "up" or "down" to nextDirection() ?
+1 @ledfusion
Most helpful comment
Try this: