Add button to header using tabs viee


#1

Hi everyone.
I’m using the tabs starter template with something like this:

<ion-view title="About">
	<ion-content class="has-header">
	...
	</ion-content>
</ion-view>

How can I add a button to the header only for a specific controller?


How add one button in header with tabs template?
#2

The older API (below 0.9.27 i think) used to have you set up buttons in you views through you controller. But with newer versions, you can actually declare you button right in your view, which is much simpler to maintain and create.

  <ion-view title="Contact">
     <ion-nav-buttons side="left">
  <button class="button" ng-click="doSomething()">
    MI
  </button>
</ion-nav-buttons>
    <ion-content>
      <p>@IonicFramework</p>
      <p>@DriftyCo</p>
    </ion-content>
  </ion-view>

#3

Great, thank you very much!


#4

((((( Thank You )))))