Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

$ionicLoading display dynamic value

$
0
0

@tridentsoftware wrote:

How can i display a dynamic value inside of ionicLoading?
here is my code but it always shows 0 - initialized value:

                  $rootScope.updateProgress = 0;
                  $ionicLoading.show({
                    template: 'Updating...' + $rootScope.updateProgress
                  });

And later in my code i update this $rootScope.updateProgress value:

            var iPecent = Math.round(downloadProgress.receivedBytes / downloadProgress.totalBytes * 100);
            $rootScope.$apply(function () {
              $rootScope.updateProgress = iPecent;
            });

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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