Hello,
where I can find full information and learn how to use $ionicViewSwitcher? Tks
Hello,
where I can find full information and learn how to use $ionicViewSwitcher? Tks
I don’t know of any docs or tutorials for this. It is used by the navDirection and navTransition directives. You can search for it in the code: http://code.ionicframework.com/1.0.0-rc.2/js/ionic.bundle.js
// grabs the nav-direction attribute from the anchor tag
$ionicViewSwitcher.nextDirection($attr.navDirection);
// grabs the nav-transition attribute from the anchor tag
$ionicViewSwitcher.nextTransition($attr.navTransition);
So you could call it like this to force the direction to be forward when navigating backwards:
$ionicViewSwitcher.nextDirection("forward");
$state.go("backState");
From ionic.bundle.js: Available options are: forward
, back
, enter
, exit
, swap
.