I am working on an Ionic application that has a "preloader" just before launching the application. Ideally, I would like the main page to appear immediately after the preloader, rather than the insert. Is there a way to programmatically determine which transition to use on a one-time basis? Usually gliding is fine, but just not for going from the preloader to the main menu.
Controller definition of $ ionicViewSwitcher and $ state
now in ng-click inside tags or buttons:
//here transition name $ionicViewSwitcher.nextDirection('forward'); //here next state name $state.go("main.map");
angular.module('YOUR_APP_NAME_HERE').config(function($ionicConfigProvider){ $ionicConfigProvider.views.transition('none'); });
Hope this helps you.