# Router navigate not refresh tab

**URL:** <https://forum.ionicframework.com/t/router-navigate-not-refresh-tab/228525>\
**Category:** Ionic Framework\
**Created:** [November 11, 2022, 5:34pm UTC](https://forum.ionicframework.com/t/router-navigate-not-refresh-tab/228525 "2022-11-11T17:34:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jnar/32/142907_2.png) [@jnar](https://forum.ionicframework.com/u/jnar)\
**Post date:** [November 11, 2022, 5:34pm UTC](https://forum.ionicframework.com/t/router-navigate-not-refresh-tab/228525/1 "2022-11-11T17:34:33Z")

</div>

Hi I have a form that insert data to storage, everything is ok but when i navigate to tabs again the tab content is not refreshing showing the new record, I try with the life cycles with no luck Ionviewillenter is not firing, I have to reload page manually to see changes this is my code:

form.page.ts  
import { Component, OnInit } from ‘@angular/core’;  
import { Router } from ‘@angular/router’;  
import { FormsModule, NgForm } from ‘@angular/forms’;  
import { PaymentService } from ‘…/services/payment.service’; ← spayments  
import { NavController } from ‘@ionic/angular’; ← also try with navcontroller and nothing happens

async onSubmit(paymentForm: NgForm) {  
let created: boolean;  
[//console.log](https://console.log)(this.data);  
await this.spayments.addPayment(this.data); ← Saves data ok  
await this.goTabs();  
}

async goTabs() {  
await this.router.navigate([‘tabs’]);  
//await this.navCtrl.(‘tabs’);  
}

tab1.page.ts  
import { Component, OnDestroy, OnInit } from ‘@angular/core’;  
import { RouterModule, ActivatedRoute, Router } from ‘@angular/router’;  
import { AlertController } from ‘@ionic/angular’;

ngOnInit() { \<–Not loads  
this.payments = [];  
this.payments = this.getAllPayments();  
console.log(this.payments);  
}

async ionViewWillEnter() { \<–not loads  
console.log(‘si viewwillenter’);  
await this.getAllPayments();  
}
