Is it possible to have content on a "shared" header bar - but in only one tab?

Regarding this starter template:

Is it possible to have an icon (or any content) on a “shared” header bar, but only in one tab? For example, in the Dashboard tab?

Whatever I place inside the ion-nav-bar directive…

<ion-nav-bar class="bar-stable nav-title-slide-ios7">
  <ion-nav-back-button class="button-icon icon ion-chevron-left">

…will show on all tabs. Example:

BTW, the back button doesn’t show…even on iPad or iPhone.


Something like this?

As for the back button, what version of ios are you using? What version of ionic?

1 Like

Wow, so simple! Thanks a lot.

I’m using iOS 7.1.1 and Ionic v1.0.0-beta.6. I just tried with the beta8 version and still can’t see the back button.

Can you try the nightly builds for the back button issue. If it still doesn’t show, can you open and issue for this and steps to reproduce it.

Are you getting this issue with the starter projects?

With the starter project, the “< Back” only appears at the friend-detail.html view, but it seems it’s supposed to be that way. It actually makes sense (to me) when I think about the app, but not when I look at the code. I guess I misunderstood it, so I’ll take a deeper look at how Ionic structures the application, cause I might be missing some fundamental concepts there (like the header-bar issue). Thanks.