Ionic loading not working


#1

Trying to incorporate ionic loading ,doesnt show the loading or any errors …

Any suggestions?

$scope.searchByBusinessName = function  (bizName ,zipCode) {

      $scope.loadingIndicator = $ionicLoading.show({
          content: '<i class="icon ion-loading-d"></i>',
          animation: 'fade-in',
          showBackdrop: true,
          maxWidth: 200,
          showDelay: 5
          });

         //removed call to web service !

          $scope.listings = [];
          console.log(locations.results.length);

          $ionicLoading.hide();
      
  }

#2

Actually there is an error.

Change:

var app = angular.module('plunker', [ionic]);

to:

var app = angular.module('plunker', ['ionic']);

Demo: http://plnkr.co/edit/gA6k9W0Osaz1vkTb1LsG?p=preview


#3

Thanks, didn’t notice the error .