shprink / ionic-native-transitions

[Maintenance only] Native transitions (iOS & Android) for Ionic Framework
https://www.npmjs.com/package/ionic-native-transitions
MIT License
572 stars 112 forks source link

$ionicLoading and state route resolve #141

Open gomflo opened 7 years ago

gomflo commented 7 years ago

$ionicLoading is not showing with plugin and route resolve it just "waits" a then does the transition. How i could show the $ionicLoading spinner?

.state('tab.chats', {
  url: '/chats',
  views: {
    'tab-chats': {
      templateUrl: 'templates/tab-chats.html',
      controller: 'ChatsCtrl'
    }
  },
  resolve: {
    resolveFirst: function($timeout, $ionicLoading) {
      $ionicLoading.show({
        template: 'Loading...'
      });

      return $timeout(function() {
        $ionicLoading.hide();
      }, 5000);
    }
  }
})