Ionic / Angular go to page

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.

+4
source share
2 answers

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");
0
source
angular.module('YOUR_APP_NAME_HERE').config(function($ionicConfigProvider){
    $ionicConfigProvider.views.transition('none');
});

Hope this helps you.

0
source

All Articles