@IonicRose wrote:
Suppose I have two tabs in my app, One is tab-one and another is tab-two now i want navigate from tab-one's view(one.html) to tab tab-two's view(two.html). I tried $state.go(), $location, $window.location but nothing works , I can navigate to any views successfully if all are under same tab even though the controllers are different, but navigation does not work if views belongs different tabs, following code shows states defined in app.js file
.state('tab.tasklist', {
url: '/tasklist',
views: {
'tab-one@tab': {
templateUrl: 'templates/one.html',
controller: 'OneCtrl'
}
}
}).state('tab.ccpo', {
url: '/ccpo',
views: {
'tab-two@tab': {
templateUrl: 'templates/two.html',
controller: 'AnotherCtrl'
}
}
})
Posts: 1
Participants: 1