<a class="item item-avatar" ng-repeat="item in result" ng-click="go('tab/profile/{{item.uid}}')">
<img src="{{item.picture}}" class="icon_top">
<button class="item-note button button-light button-small icon-left" ng-click="followButton()" ng-show="item.follow == 1"><i class="icon ion-checkmark-round"></i> {{'FOLLOW' | translate}}</button>
<button class="item-note button button-energized button-small icon-left" ng-click="followButton()" ng-hide="item.follow == 1">{{'FOLLOW' | translate}}</button>
<h2>{{item.user_name}}</h2>
</a>
Currently if someone clicks on the button it opens the go('tab/profile/{{item.uid}}')
and the followButton()
How do I make only followButton()
work?