I have following tab configuration.
.state(‘tab.user’, {
url: ‘/user’,
abstract: true,
})
.state(‘tab.user.index’, {
url: ‘/’,
views: {
‘tab-user’: {
templateUrl: ‘templates/tab-user-index.html’,
controller: ‘DashCtrl’
}
}
})
.state(‘tab.user.profile’, {
url: ‘/:userId’,
views: {
‘tab-user’: {
templateUrl: ‘templates/tab-user-profile.html’,
controller: ‘userProfileCtrl’
}
}
})
state(‘tab.events’, {
url: “/events”,
abstract:true
})
.state(‘tab.events.index’, {
url: “/”,
views: {
‘tab-events’: {
templateUrl: ‘templates/tab-events.html’,
controller: ‘eventsCtrl’
}
}
})
tab.user.index is the profile of logged in user and tab.user.profile is to view someone else peofile. I have links from tab.events.index to view profile of other users. The ionic user tab(tabs displaying at bottom) is configured to show tab.user.index. However if i go to someoelse profile first from tab.events page. When i click on ionic bottom tab of user, it shows the previously clicked user profile(tab.uer.profile) and never go to logged in user profile(tab,user.index). I tried different ways to set default tab but not working. I am beginner of ionic framework. Please help, may be i am doing somthing wrong…