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>
i get just an empty value,
if i put a console.log on the progress listener i saw the change
Any help plz