Ionic 5 reload page

15.2k Views Asked by At

I have an ionic single page web app in which the user completes some information and create some components dynamically (new columns, cards, etc). After clicking on a button I want to fully reload my page in the initial state. I have tried angular lifecycle hooks but it doesn't seem to trigger them because there is no change in the route. I tried also route.navigate(['home']), but it doesn't work. I don't need to save any data. Just reload everything.

1

There are 1 best solutions below

1
On

Try reloading the window with javascript like this

window.location.reload();