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



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

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

  .state('', {
    url: '/help',
    views: {
      help: {
        templateUrl: 'help.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 icon="ion-help" ui-sref="">
      <ion-nav-view name="help"></ion-nav-view>


<ion-view title="Feed">
    <ion-content class="has-header">
        <ion-item ng-repeat="post in posts">

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