Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Ionic Tab with clickable icon

$
0
0

@curseshadow wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>