$ionicLoading, template does not work

Asked

Viewed 112 times

3

When I call the call show() passing the attribute content: '...' loading text is changed as below.

$rootScope.loading = $ionicLoading.show({
    content: 'Loading...'
});

But when I use template, as below, it doesn’t work.

$rootScope.loading = $ionicLoading.show({
    template: 'Loading...'
});

Why ? what is the difference between them ? in Ionic documentation nor does it contain any mention of content.

1 answer

2


One of the possible causes for this problem is the version of Ionic and or the libraries you are using.

Here has an example showing how the loading properly customized.

If your app is local(offline) just do the Download library ionic.bundle.js and its dependencies, and manually add to the project.

If you are a Voce online application you can use the Ionic.

 <script src="http://code.ionicframework.com/1.1.1/js/ionic.bundle.min.js"></script>

The ionic.bundle.js is a set of all libraries both ionic and angular for the operation of the.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.