How To Build Navbar With Specific Controls Based On Active Tab?

I am trying to figure out how to assign a specific navbar based on the active tab.

For example:
If I have a tab called feed, I would like the navbar to have a compose button.
Then when I am viewing a specific post from the feed, I would like to display a back button.
When I am in the account tab there would not be any controls.

Below is some code to get tabs to work. Please provide me with any guidance on how I could make the header have specific control based on the active tab. Thank you

routes.js

$stateProvider

  .state('tabs', {
    abstract: true,
    templateUrl: 'main.html'
  })


  .state('tabs.feed', {
    url: '/feed',
    views: {
      feed: {
        templateUrl: 'feed.html',
        controller: 'postCtrl'
      }
    }
  })

  .state('tabs.help', {
    url: '/help',
    views: {
      help: {
        templateUrl: 'help.html'
      }
    }
  })
}])

index.html

<head>
  <title>Title</title>
</head>

<body>
  <ion-nav-view></ion-nav-view>
</body>

main.html

<ion-nav-bar class="bar-positive"></ion-nav-bar>

  <ion-tabs class="tabs-positive">
    <ion-tab icon="ion-checkmark" ui-sref="tabs.feed">
      <ion-nav-view name="feed"></ion-nav-view>
    </ion-tab>
    <ion-tab icon="ion-help" ui-sref="tabs.help">
      <ion-nav-view name="help"></ion-nav-view>
    </ion-tab>
  </ion-tabs>

feed.html

<ion-view title="Feed">
    <ion-content class="has-header">
      <ion-list>
        <ion-item ng-repeat="post in posts">
          <h2>{{post.title}}</h2>
          <p>{{post.description}}</p>
        </ion-item>
      </ion-list>
    </ion-content>
  </ion-view>

Looks like there is a nice solution already in place with ion-nav-buttons, which could be placed into the tab directive.

http://ionicframework.com/docs/api/directive/ionNavButtons/