Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to show and hide $ionicLoding for $ionicModal open and close progress using Ionic Framework

$
0
0

I fond below code for $ionicLoading for page state change on navigation

$scope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams){
   $ionicLoading.show({
     template: '<p>Loading...</p><ion-spinner class="spinner spinner-bubbles"></ion-spinner>'
  });
});
$scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
  $timeout(function(){
     $ionicLoading.hide();
  },2000);
});

But it is work only for page state change.

I need for $ionicModal modal popup open and close state.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>