0
Good afternoon, I am new to the angular/Ionic platform, I am studying and I have a function:
async update() {
this.contactService.updateservice(this.frmcontactdetail.value).subscribe();
const toast = await this.toastController.create({
message: 'Contact update successfully',
duration: 2000
});
toast.present();
this.router.navigate(['/contact']);
}
the data is updated in the database, but when redirected the route 'this.router.navigate(['/contact'])', the same is still found with the old data, not updating in any way. *Page Contact
list() {
try {
this.contactService.listservice().subscribe(dados => this.contact = dados);
} catch (error) {
console.log('erro encontrado ' + error);
}
}
Thank you.
Someone please.
– Jefferson