$ionicLoading
An overlay that can be used to indicate activity while blocking user interaction.
Usage
angular.module('LoadingApp', ['ionic'])
.controller('LoadingCtrl', function($scope, $ionicLoading) {
  $scope.show = function() {
    $ionicLoading.show({
      template: 'Loading...',
      duration: 3000
    }).then(function(){
       console.log("The loading indicator is now displayed");
    });
  };
  $scope.hide = function(){
    $ionicLoading.hide().then(function(){
       console.log("The loading indicator is now hidden");
    });
  };
});
Methods
  show(opts)
Shows a loading indicator. If the indicator is already shown, it will set the options given and keep the indicator shown.
| Param | Type | Details | 
|---|---|---|
| opts | object | The options for the loading indicator. Available properties: 
 | 
- Returns: 
promiseA promise which is resolved when the loading indicator is presented.
  hide()
Hides the loading indicator, if shown.
- Returns: 
promiseA promise which is resolved when the loading indicator is hidden.