WEB DEVELOPER SITE
TUTORIALS HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML


 

Ionic - Javascript Backdrop


The Ionic background can overlay the content of the screen once applied. it'll seem below alternative overlays (popup, loading, etc...). The $ionicBackdrop.retain() can apply background over the elements, and $ionicBackdrop.release() can take away it.

Using Backdrop

We area unit adding $ionicBackdrop as a dependency to the controller, then making the $scope.showBackdrop() operate which will decision the retain technique straightaway. Then, once 3 seconds, it'll decision the discharge technique. we tend to area unit exploitation $timeout for the discharge technique
.controller('myCtrl', function($scope, $ionicBackdrop, $timeout) {
   $scope.showBackdrop = function() {
      $ionicBackdrop.retain();
		
      $timeout(function() {
         $ionicBackdrop.release();
      }, 3000);
   };
})

Welookups is optimized for learning.© 2018 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.

welookups.com
Javacodegeeks