Ionic Tab with clickable icon


#1

Hi, how can i apply ng-click function on the icon in the tab? Is that possible?

For example;

<ion-tabs class="tabs-striped tabs-top tabs-background-positive tabs-color-light">
            <ion-tab title="{{tabs[0].name}} <span class='icon ion-trash-tab' ng-click="remove(tab)"></span>">
                <ion-view>
                    <div ng-include="'views/proposal/proposal_plan_slides.html'"></div>
                </ion-view>
            </ion-tab>
</ion-tabs>

I try using this way but it seems that the ng-click is not even appear

Thanks