ah yes! it works! I just need to do the back button
Thank you!!!
ah yes! it works! I just need to do the back button
Thank you!!!
@yurinondual I have a very similar structure like:
.state('tab', {
url: "/tab",
abstract: true,
templateUrl: "templates/tabs.html"
})
.state('tab.more', {
url: '/more',
views: {
'tab-more': {
templateUrl: 'templates/tab-more.html',
controller: 'moreCtrl'
}
}
})
.state('tab.profile', {
url: '/profile',
views: {
'tab-profile': {
templateUrl: 'templates/profile.html',
controller: 'profileCtrl'
}
}
})
and
<ion-tabs class="tabs-dark" >
<ion-tab icon="ion-navicon-round" ui-sref="tab.more">
<ion-nav-view name="tab-more"></ion-nav-view>
</ion-tab>
<ion-tab icon="ion-navicon-round" ui-sref="tab.profile">
<ion-nav-view name="tab-profile"></ion-nav-view>
</ion-tab>
</ion-tabs>
when I navigate from other page to nested view ātab-profileā I have NO backbutton. It is because its a child view?
Iāve tried remove abstract from ātabā but with no success.
Iāve already saw some talking about this by @mhartington
What should I do?
Thank you
I added the back button to the view in question and that worked
<ion-nav-bar>
<ion-nav-back-button class="button-clear">
<i class="ion-arrow-left-c"></i> Back
</ion-nav-back-button>
</ion-nav-bar>
that didnāt work
where is the codePen for this? That might make it a ot easier for you to get some help and it shouldnāt take that long to put it together?
Ok, Iāve created a simple codePen.
When navigating from HOME to OTHER-PAGE animation and back-button appears, but when navigating from OTHER-PAGE to TABS the animation and back-button is lost.
This is expected behaviour. Ionic clears state history when navigating between tabs. SO each tab has itās own history. But you can implement your own back button that will go to your desired route
@yurinondual thank you for your reply.
I know that āoutterā history is cleared when navigating between tabs.
This is the current behaviour but not the expected one, when navigating to a view with tabs we should be able to go back to previous state (Iām not talking about between this view tabs).
Also, I dont want to hardcode button back behaviour. Ionic Navigation should handle that.
Ionic is great and in my opinion this is the most important bug that has not yet been fixed.
There is an opened issue in github driftyco/ionic