$ ionicLoading, template does not work

3

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

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

But when I use template, as below, it does not work.

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

Why? What is the difference between them ? in the ionic documentation nor has mention of content .

    
asked by anonymous 25.11.2015 / 04:48

1 answer

2

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

Here has an example that shows the operation of loading correctly.

>

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

If you are an 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 its operation.

    
25.11.2015 / 14:34