Ionic Tabs Clear history after naivgation


I am navigating between tabs using the following;

After navigation I do not want the hardware back button to take me back.

Is there a way to clear history after navigating between tabs??


Hi @almighty99 - did you ever find a solution to this?

On tab change clear previous tab nav history
Reset a tab after going to different tab

Quick update. I found a solution. I used the ionChange event:
<ion-tabs (ionChange)="tabChanged($event)">

When this fires, the event provides the tab being navigated to. In my case I only wanted to ditch history on one of my tabs. Adding below worked well:

  if($ev.tabTitle === "TITLE_HERE"){


I handled the hardware back button using something similar