When navigating to a different page, the ion-navbar
component automatically includes a back button that uses the pop()
method to return to the previous page. Is there a way to modify this behavior so that it utilizes the setRoot()
method instead of pop()
, or would I need to switch to using ion-toolbar
and manually add my own custom back button?
(On another note, my reason for wanting to use setRoot()
is because it provides a simple way to force the previous page to refresh rather than displaying the cached version. Lifecycle hooks like ionViewWillEnter
have not proven effective in resolving this issue. If there is an alternative solution available, I am open to exploring that as well.)