programmatically restart an ionic app

Issue

I would like to reboot my Ionic app programmatically.

I found solutions to only reload the current view like location.reload()…but I would like the app the re-run the app.js, both for iOS and Android.

Any idea ?
Thanks

Solution

I wouldn’t recomend going with that approach, in single page apps always try to have a system to reset the data, cache, history, etc. and then go to the initial state, instead of forcing to refresh de webUI.
Ionic has a lot of features to help you accomplish that.

Answered By – Hiraqui

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published