# Back button with nested states

**URL:** <https://forum.ionicframework.com/t/back-button-with-nested-states/16017>\
**Category:** ionic-v1\
**Created:** [January 20, 2015, 9:58am UTC](https://forum.ionicframework.com/t/back-button-with-nested-states/16017 "2015-01-20T09:58:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![devoptix](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@devoptix](https://forum.ionicframework.com/u/devoptix)\
**Post date:** [August 28, 2015, 8:34pm UTC](https://forum.ionicframework.com/t/back-button-with-nested-states/16017/6 "2015-08-28T20:34:25Z")

</div>

OK, I found the answer here in [another thread](http://forum.ionicframework.com/t/back-button-not-showing-when-coming-from-nested-pages-tabs/18019/7)

> Add this to your controller:
> 
> ```javascript
> $scope.$on('$ionicView.beforeEnter', function (event, viewData) {
> viewData.enableBack = true;
> });
> 
> ```

---

_[View the full topic](https://forum.ionicframework.com/t/back-button-with-nested-states/16017)._
