Currently utilizing Ionic and AngularJS for my project.
The structure of my app consists of tabs, and the tabs.html file is configured as follows:
<ion-view>
<ion-nav-bar class="bar-positive" align-title="center">
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<ion-tabs class="tabs-icon-top" ng-controller="TabsCtrl" ng-class="{'tabs-item-hide': hideTabs}">
<ion-tab title="TITLE 1" href="#/tabs/page1">
<ion-nav-view name="page1-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="TITLE 2" href="#/tabs/ge2">
<ion-nav-view name="ge2-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="TITLE 3" href="#/tabs/page3">
<ion-nav-view name="3-tab"></ion-nav-view>
</ion-tab>
</ion-tabs>
</ion-view>
Now, looking at a particular tab page, the layout is structured as such:
<ion-view view-title="TITLE 1">
<ion-nav-buttons side="left">
<button class="button icon ion-search"></button>
</ion-nav-buttons>
<ion-nav-buttons side="right">
<button class="button icon ion-compose"></button>
</ion-nav-buttons>
...
...
...
</ion-view>
I am looking to include an ng-click on the view-title
. However, adding it to the ion-nav-bar
element interferes with the click functionality of the buttons within the view.
My goal is to trigger the action only when clicking in the center portion of the nav bar.
If anyone has any insights or suggestions, they would be greatly appreciated.