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

[Ionic 4] How to reload page after navigating

$
0
0

@AdamGelineau wrote:

Hi guys,

I have a page which shows informations for each user.
He can update those informations by going on another page.
When he saves his informations, he’s redirected on the previous page where he can see his infos again.

Problem is the previous page isn’t reloaded, so he doesn’t see the changes he made.

This is the code which is executed when I click on my save button:

updateInfos() {
    this.submitAttempt = true;
    this.api.post('update', this.formMaFiche.value)
      .subscribe(res => {
        if (res.result === 'success') {
          this.router.navigate(['/tabs/tab1'], {state: {updateInfos: true}});
        }
      }, err => {
        console.log(err);
        this.alert.present();
      });
}

But tabs/tab1 page isn’t reloaded, it’s just shown like it was before leaving it.

How can I reload it ?

Thanks :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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