SuperRoo
SuperRoo

Reputation: 87

How to refresh Ionic 4 page after a navigateBack

I have an edit page which opens with a :

 this.navController.navigateForward('AddEvent')

and when the event is finished uses :

 this.navController.navigateBack('MainPage');

to show the new event...except the page is not refreshing to show it...

Anybody have some successful ideas?

Upvotes: 2

Views: 3339

Answers (1)

Darshana
Darshana

Reputation: 650

I have solved by calling initial data in ionViewWillEnter() instead of ngOnInit().

Upvotes: 2

Related Questions