Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49121

setRoot to the same page with refresh

$
0
0

@zabka229 wrote:

Hello everybody.
I have a little problem.
In my root page I am pushing new page:

    this.navCtrl.push(DetailsPage);

After that in my DetailsPage I am doing some actions which change the content of my root page and then in alert I’m closing my DetailsPage.

let alert = this.alertCtrl.create({
 ...
      buttons: [{
          handler: () => {
            this.navCtrl.setRoot(RedditsPage);
            return false;
          } }
      ],
      enableBackdropDismiss: false
    });

But it shows me RedditsPage with old data, it suppose to show new data. How can I fix it?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49121

Trending Articles



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