# Issues with the back button implementation

**URL:** <https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895>\
**Category:** ionic-v1\
**Created:** [April 11, 2014, 2:30pm UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895 "2014-04-11T14:30:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreerangp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shreerangp](https://forum.ionicframework.com/u/shreerangp)\
**Post date:** [April 11, 2014, 2:30pm UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895/1 "2014-04-11T14:30:31Z")

</div>

Hello all.

I am using the beta version of Ionic and am having issues implementing the Back button in the navbar.

I have the following code for the back button in my navigation html file from where I set the routes for each entry in the side menu.

This back button is visible on all subsequent pages, where I do not want it to appear.

```
<ion-nav-bar class="bar-assertive">
			<ion-nav-back-button class="button-clear">
				<i class="icon ion-chevron-left"></i>
			</ion-nav-back-button>
		</ion-nav-bar>

```

I have attached a screen shot to my issue. I want to disable the back button here.

I have been struggling with this issue the entire day and looked into the forum for previous posts, but none have helped! Any helpis greatly appreciated.

Regards.  
Shreerang  
[Spatial Unlimited](http://shreerangpatwardhan.blogspot.com)

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [April 11, 2014, 3:58pm UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895/2 "2014-04-11T15:58:38Z")

</div>

Stand by. Working on a sample for you.

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [April 11, 2014, 7:35pm UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895/3 "2014-04-11T19:35:39Z")

</div>

See this sample. [http://codepen.io/calendee/pen/eLgjb?editors=101](http://codepen.io/calendee/pen/eLgjb?editors=101)

- There are two ways to hide the back button - with `hide-back-button="true"` in the `<ion-view>` : Page 2 shows this.
- Using `$ionicNavBarDelegate` : Page 3 shows this. Note the timeout is required or when the view renders, the backbutton gets put on again.

---

<div class="post-metadata">

**Author:** ![shreerangp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shreerangp](https://forum.ionicframework.com/u/shreerangp)\
**Post date:** [April 15, 2014, 9:52am UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895/4 "2014-04-15T09:52:47Z")

</div>

@Calendee thanks for the snippet. I was trying using $ionicNavBarDelegate and was missing the timeout. Thanks a lot for your input.

Regards.  
Shreerang  
[Spatial Unlimited](http://shreerangpatwardhan.blogspot.com)

---

<div class="post-metadata">

**Author:** ![shreerangp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shreerangp](https://forum.ionicframework.com/u/shreerangp)\
**Post date:** [April 28, 2014, 5:52am UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895/5 "2014-04-28T05:52:55Z")

</div>

Hello @Calendee.

This implementation is not working when using the side menu implementation. If you click on a menu item in the side menu and have `hide-back-button="false"` in the `<ion-view>`, the back button doesn’t show up. I was looking into the ionic starter sideMenu app.

Regards.  
Shreerang  
[Spatial Unlimited](http://shreerangpatwardhan.blogspot.com)

---

<div class="post-metadata">

**Author:** ![shreerangp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shreerangp](https://forum.ionicframework.com/u/shreerangp)\
**Post date:** [April 28, 2014, 10:47am UTC](https://forum.ionicframework.com/t/issues-with-the-back-button-implementation/2895/6 "2014-04-28T10:47:58Z")

</div>

Got around this…The back button was not visible as there was `nav-clear` on the `href` of each menu item.

Regards.  
Shreerang  
[Spatial Unlimited](http://shreerangpatwardhan.blogspot.com)
