Ionic Backdrop : It shows the overlay above the content and below the popups, loading and other overlays. Method $ionicBackdrop.retain() and $ionicBackdrop.release() is used for backdrop in ionic. $ionicBackdrop.retain() is used to apply overlay over the content. $ionicBackdrop.release() is used to remove Ionic Backdrop from the content. Each time when $ionicBackdrop.retain() is called the $ionicBackdrop.release() method is also called. Here we are going to explain the ionic backdrop functionality with example and demo.
Note : $ionicBackdrop service is mandatory before using. Make sure you have imported it.
You first need to import service of backdrop in controller then create a function which contains the ionic retain and release method. if you run the above example it will produce the following output –
More About Ionic Backdrop
Let us have more example of Ionic Backdrop.
Ionic Execute Action on Backdrop Disappear/Hidden
You Can Execute Action on backdrop disappear event as below –