@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
Posts: 1
Participants: 1