I have an ionic-side-menu template based project, using the same right buttons in the header bar in all screens. The header bar contains a shopping cart button and a profile button. What I’m doing now is including
<ion-nav-buttons side="right"> <button class="button button-icon icon ion-bag righthd-icon" ng-click="gotoCart();" ng-if="shopping_cart_enabled"></button> <button class="button button-icon icon ion-person righthd-icon" ng-click="showUserOptions();"></button> </ion-nav-buttons>
inside each ion-view I have, and taking care of calling the showUserOptions in each controller scope, which is not very smart. Is there anyway to avoid this redundancy, where should i put ion-nav-buttons to make it global across all states/screens.