I want to run the function onCreate() every time the create tab is selected.
<ion-tabs class="tabs-icon-top">
<ion-tab title="Create" icon="icon ion-edit" on-select="onCreate()">
<ion-nav-view name="tab-create"></ion-nav-view>
</ion-tab>
<ion-tab title="Home" icon="icon ion-home" href="#/tab/home">
<ion-nav-view name="tab-home"></ion-nav-view>
</ion-tab>
</ion-tabs>
But on-select="" fires when the app first runs as well even though the route for it is not triggered. My guess is that it automatically selects the first tab since I can move the Create tab to second and it doesn’t fire. Is there a way to set some kind of active/selected attribute on the tab that I want first so the create doesn’t fire on init?