How to change the text (or the content) of the loading control in the running time?


If I am not mistaken, the LoadingControl is being developed. So I use the Loading instead.

My question is how we can change the text of this control in the run-time?

for example, at the beginning of the download progress is “please wait …”, when we finish the download, the text will be “successfully downloaded” 1 second before dismissing.



@hieuluongdevoteam Nice point to highlight on the forum.

For exactly the same thing I also looking for… I’m also not able to make it so far.

Anyone already did this?? Shed some light on this.



Up…anyone knows how to achieve that?


Actually pretty easy:

let loader = this.loadingCtrl.create({
  content: "Please wait...",
  duration: 3000

loader.setContent("Another One Bites the Dust");

let loader = this.loadingCtrl.create({
      content: "Authenticating...",
      duration: 5000

setTimeout(() => {   // here may goes your 
      loader.setContent("Fetching your data..");

This is just a sample to showcase change of text on loading.

You can change content inside your method using other technique, too.