How to get back button in Ion-tabs page

I’m using ionic. When I navigate from home page to tabs page ‘back’ button is getting disappeared and I can’t go back to the home page once i enter into the tabs page. I tried to search online but couldn’t find solution. Is there any workaround or am i doing wrong anywhere. Here is my code index.html

<html data-ng-app="tabsBack">
    <meta charset="utf-8" />

    <!-- BlankCordovaApp1 references -->
    <link href="css/index.css" rel="stylesheet" />
    <link href="" rel="stylesheet" />

    <!-- Cordova reference, this is added to your app when it's built. -->
    <script src="cordova.js"></script>
    <script src="scripts/platformOverrides.js"></script>
    <script src=""></script>
        var app = angular.module('tabsBack', ['ionic']);
        app.config(function ($stateProvider, $urlRouterProvider) {
                .state('home', {
                    url: "/",
                    templateUrl: "home.html"
                .state('tab', {
                    url: "/tab",
                    templateUrl: "tab.html"
                .state('', {
                    url: '/one',
                    views: {
                        'tab-one': {
                            templateUrl: 'templates/tab-one.html',
                .state('tab.two', {
                    url: '/two',
                    views: {
                        'tab-two': {
                            templateUrl: 'templates/tab-two.html',

    <script src="scripts/index.js"></script>
        <ion-nav-back-button class="button-clear">
            <i class="ion-arrow-left-c"></i> Back


<ion-view view-title="home">
        home<br />
        <a data-ui-sref="tab">tab</a><br />

<ion-tabs class="tabs-icon-top">
    <ion-tab title="One" icon="icon ion-ios7-paper" href="#/tab/one">
        <ion-nav-view name="tab-one"></ion-nav-view>
    <ion-tab title="Two" icon="icon ion-ios7-paper" href="#/tab/two">
        <ion-nav-view name="tab-two"></ion-nav-view>


<ion-view title="One">


<ion-view title="Two">

in tab-one.html added this
<ion-nav-buttons> <button class="button" ng-click="myGoBack()"><i class="ion-arrow-left-c"></i> Back</button> </ion-nav-buttons>
and in controller
$scope.myGoBack = function () { $ionicHistory.goBack(); };
it works for first time but when i come back to tabs page second time the back is not getting displayed.I don’t know whether it is a issue with ionic or not but it became a nightmare for me. I would be happy if anyone can help. Thanks

here it is
. Click the tab link, then click back and now click the tab link again
the back button won’t appear. I think header itself is not updating.

It had to do with your link to

I changed the function to just uset $state.go

We’re having similar issues. We’re using tabs in a nested state and would like to control whether to display the back button or not. I don’t want to add an extra “manual” back button, but use the one that’s there (hidden).

Also, the title of a nav-view in a tab view is ignored, always showing the title of the tab in the nav bar title. How are we supposed to set a “custom” title of the nav bar?

What is the rationale behind these behaviors?

Thanks for this but it is effecting other page back button. if tabs page is called from different page(i added a new page sam.html) it is effecting the back button in the sam.html. The back button in sam page is hiding and showing every time we go to tabs page and come back to sam.html.

Today I faced one more issue with tabs page. I added one more tabs page(three and Four tabs). When I navigate from 'sam to ‘tab1’ page , then come back to ‘sam’ page and now going to ‘tab2’ page it is showing previous tab pages. Sorry if I couldn’t explain the problem clearly.Here is the plunker . I don’t know whether it is ionic issue or i messed it up. Somebody please help me in correcting it. Thank you

Finally got it working. Here is the code So far i didn’t faced any problem :smile:

1 Like

Thanks its working :slight_smile: but i have 2-3 same page so when i click back it goes to home only so is there any solution for it

no, this is not solved at all