ionic-native-transitions icon indicating copy to clipboard operation
ionic-native-transitions copied to clipboard

$ionicLoading and state route resolve

Open gomflo opened this issue 7 years ago • 0 comments

$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);
    }
  }
})

gomflo avatar Apr 25 '17 04:04 gomflo