Skip to content

$ionicLoading and state route resolve #141

@gomflo

Description

@gomflo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions