<!--
 A simple starting template for Ionic Development.
-->
<html ng-app="myApp">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    
    <title>Ionic Template</title>

    <link href="https://code.ionicframework.com/0.9.26/css/ionic.css" rel="stylesheet">
    <script src="https://code.ionicframework.com/0.9.26/js/ionic.js"></script>
    <script src="https://code.ionicframework.com/0.9.26/js/angular/angular.js"></script>
    <script src="https://code.ionicframework.com/0.9.26/js/angular/angular-animate.min.js"></script>
    <script src="https://code.ionicframework.com/0.9.26/js/angular/angular-sanitize.min.js"></script>
    <script src="https://code.ionicframework.com/0.9.26/js/angular-ui/angular-ui-router.min.js"></script>
    <script src="https://code.ionicframework.com/0.9.26/js/ionic-angular.js"></script>
  </head>
  <body ng-controller="MyCtrl">
    
    <header-bar title="myTitle"></header-bar>

    <content has-header="true" padding="true">
      <h2>Content</h2>
      <button class="button" ng-click="showLoading()">Show Loading</button>
    </content>
    

  </body>
</html>
body {
  cursor: url('https://ionicframework.com/img/finger.png'), auto;
}
angular.module('myApp', ['ionic'])

.controller('MyCtrl', function($scope, $ionicLoading, $timeout) {
  $scope.myTitle = 'Template';
  
  $scope.showLoading = function() {
  
        $scope.loadingIndicator = $ionicLoading.show({
            content: 'Showing Loading Indicator!',
            animation: 'fade-in',
            showBackdrop: false,
            maxWidth: 200,
            showDelay: 500
        }); 
    
    $timeout(function(){
      $scope.loadingIndicator.hide();
    },1000);   
  };
  
});
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.