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

Send value from listener to view

$
0
0

@m4riachi wrote:

Hi every one

I used filetransfer onprogress but i cant show the change on the view

file.page.ts

public loaded = '';
.
.
.
this.fileTransfer.onProgress((progressEvent) => {
      if (progressEvent.lengthComputable) {
        var perc = Math.floor(progressEvent.loaded / progressEvent.total * 100);
        if (this.loaded != perc + "% loaded...") {
          this.loaded = perc + "% loaded...";
        }
      } else {
        if (this.loaded == "") {
          this.loaded = "Loading";
        } else {
          this.loaded += ".";
        }
      }
    });

file.page.html

<div>{{ loaded }}</div>

Any help plz

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70763

Trending Articles



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