$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...'
});
};
$scope.hide = function(){
$ionicLoading.hide();
};
});
Methods
show(opts)
Shows a loading indicator. If the indicator is already shown, it will set the options given and keep the indicator shown. Note: While this function still returns an $ionicLoading instance for backwards compatiblity, its use has been deprecated.
Param | Type | Details |
---|---|---|
opts |
object
|
The options for the loading indicator. Available properties:
|
hide()
Hides the loading indicator, if shown.