Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49183

Have a custom animation with the $ionicLoading instead of a spinner

$
0
0

@peterhriser wrote:

I am trying to have a custom animation, preferably a gif displayed on the splash screen. `

.controller('LoadingCtrl', function ($scope, $ionicLoading) {
$scope.show = function () {
$ionicLoading.show({
content: "",
template: 'Loading...',
noBackdrop: 'true',
hideOnStateChange: 'false'
}).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");
});
};
});

Right now it defaults to a spinner and I do not know why or how to make it so my own gif will appear.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>