I don't see an option to display both spinner and label message! Docs.
Is there a simple way to do this or it must be something that I have to do myself?
Example (it doesn't have to look like this of course): .jpg
Thanks!
I don't see an option to display both spinner and label message! Docs.
Is there a simple way to do this or it must be something that I have to do myself?
Example (it doesn't have to look like this of course): http://www.jqueryscript.net/images/jQuery-Ajax-Loading-Overlay-with-Loading-Text-Spinner-Plugin.jpg
Thanks!
Share Improve this question edited Nov 11, 2015 at 8:55 Nam Pham 1,22413 silver badges39 bronze badges asked Oct 27, 2015 at 16:47 SupimpaAllTheWaySupimpaAllTheWay 1,4583 gold badges17 silver badges23 bronze badges2 Answers
Reset to default 17You can try this:
$ionicLoading.show({
template: '<ion-spinner></ion-spinner> <br/> My Label'
});
Not tested, I think it will show up the spinner, but maybe no animation.
You can load your template:
<script id="loading.html" type="text/ng-template">
<ion-spinner icon="bubbles"></ion-spinner>
<p>LOADING...</p>
</script>
and in your code:
$ionicLoading.show({
templateUrl: 'loading.html'
// noBackdrop: true
});
or, as Nam Pham suggested, defined an inline template:
$ionicLoading.show({
template: '<ion-spinner icon="bubbles"></ion-spinner><p>LOADING...</p>'
// noBackdrop: true
});
If you want you can defined a different spinner.
You can see how it works here.