Navigation 离子2:清除离子选项卡导航历史记录

Navigation 离子2:清除离子选项卡导航历史记录,navigation,ionic2,Navigation,Ionic2,我有一个有5个标签的页面。我可以导航到一个选项卡,比如tab 1,然后如果我更改了该选项卡并返回到上一个选项卡,则会保留上一个选项卡(tab 1)导航堆栈 Sequence of events: 1) By default Tab 1 is showing with list of items 2). I click on the item , go into the item detail and now back button is displayed 3). Now I'm mov

我有一个有5个标签的页面。我可以导航到一个选项卡,比如tab 1,然后如果我更改了该选项卡并返回到上一个选项卡,则会保留上一个选项卡(tab 1)导航堆栈

Sequence of events:

1) By default Tab 1 is showing with list of items 
2). I click on the item , go into the item detail and now back button is displayed 
3). Now I'm  moving to the second tab. 
4). finally moving to the first tab. Here again I see the item detail with the back button.
我想清除这个导航堆栈

Sequence of events:

1) By default Tab 1 is showing with list of items 
2). I click on the item , go into the item detail and now back button is displayed 
3). Now I'm  moving to the second tab. 
4). finally moving to the first tab. Here again I see the item detail with the back button.
我要清除这个状态

Sequence of events:

1) By default Tab 1 is showing with list of items 
2). I click on the item , go into the item detail and now back button is displayed 
3). Now I'm  moving to the second tab. 
4). finally moving to the first tab. Here again I see the item detail with the back button.

有人帮忙吗

没有你的代码很难说。原因可能是您没有在导航中将页面设置为rootPage,或者您可能在ion标题中使用了ion导航栏,而不是使用了ion工具栏
Sequence of events:

1) By default Tab 1 is showing with list of items 
2). I click on the item , go into the item detail and now back button is displayed 
3). Now I'm  moving to the second tab. 
4). finally moving to the first tab. Here again I see the item detail with the back button.