I have a main tab that only shows a list of items. and the settings tab, which has a nested view for installing different configurations.
If I move in this particular order, the "Back" button does not display correctly, or if it is shown, the title will not remain on the left: 37px
This is how I create a navigation bar.
<ion-nav-bar class="bar-stable no-animation" align-title="left"> <ion-nav-back-button class="button-icon icon ion-ios7-arrow-back"></ion-nav-back-button> </ion-nav-bar>

Is there a solution to clear the history of this tab, so when I click on it, the main settings tab opens instead of the previously opened subview? Or, if it needs to be shown, it must correctly calculate the left side of the header.
Here is the codepen demo. Click on the tabs in that order.
1. On main page, click on Scientific Facts 2. After view changes, click on Contacts tab 3. Then click on Home tab again. It reproduces the behavior.
Update:
So far, I have discovered that there is a $scope.$watch that decides whether to show or hide a button. and it works later (after calculating and aligning the name). Therefore, when calculating leftWidth , the width of the button is not returned.
source share