Hi,
I’ve been working on a tab project and noticed that after so much switching between tabs they stop working completely.
For example I have three tabs which work fine to start but the more I click between them the more strange they become. The tab icon eventually won’t highlight when I click a new tab and the content stops changing between them.
My code is rather simple:
myApp.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state("secure", {
url: "/secure",
templateUrl: "templates/secure.html"
})
.state("secure.service", {
url: "/service",
views: {
"secure-content": {
templateUrl: "templates/service_tabs.html"
}
}
})
.state("secure.account", {
url: "/account",
views: {
"secure-content": {
templateUrl: "templates/account_settings.html"
}
}
})
.state("secure.service.tabs", {
url: "/tabs",
views: {
"viral": {
templateUrl: "templates/tabs_viral.html",
controller: "TabsController"
},
"albums": {
templateUrl: "templates/tabs_albums.html",
controller: "TabsController"
},
"messages": {
templateUrl: "templates/tabs_messages.html",
controller: "TabsController"
}
}
});
$urlRouterProvider.otherwise('/secure/service/tabs');
});
Above is my $state config, and here is the code that appears in my secure.service state:
<ion-view>
<ion-tabs class="tabs-dark tabs-icon-only">
<ion-tab title="Stream" icon-on="ion-ios-pulse-strong" icon-off="ion-ios-pulse-strong">
<ion-nav-view name="viral"></ion-nav-view>
</ion-tab>
<ion-tab title="Albums" icon-on="ion-person" icon-off="ion-person">
<ion-nav-view name="albums"></ion-nav-view>
</ion-tab>
<ion-tab title="Messages" icon-on="ion-chatbox" icon-off="ion-chatbox">
<ion-nav-view name="messages"></ion-nav-view>
</ion-tab>
</ion-tabs>
</ion-view>
I apologize if the formatting got wonky when I pasted it in.
In addition to the tab switching failing, the titles also fail. After I’ve navigated through all three tabs, the title remains as whatever the third tab switched was.
Trying to figure out if this is an AngularJS issue, Ionic, or maybe just me.
Any input appreciated.
Thanks,

