On-tab-select event inside Tab Controller

Is it possible to act on the on-select event when inside a the tab controller? My app structure looks like this:

<ion-tabs class="tabs-icon-top tabs-positive">
    <ion-tab title="Charts" icon-off="ion-ios-pulse" icon-on="ion-ios-pulse-strong" href="#/tab/charts">
        <ion-nav-view name="tab-charts"></ion-nav-view>
    </ion-tab>
</ion-tabs>

With the controller:

function config($stateProvider) {
    $stateProvider.state('tab.charts', {
        url: '/charts',
        views: {
            'tab-charts': {
                templateUrl: 'views/charts/charts.html',
                controller: 'ChartController'
            }
        }
    })
}

I know it is possible to use the on-select attribute when inside the tabs scope but I would like to detect the event inside my tab controller (ChartController). Is this possible?

2 Likes

I want to do the same thing. Did you figure it out yet?