How to navigate from one tab to another tab by clicking a link or url in IONIC?


#1

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'     
      }
    }
  })

#2

This is definitively possible


#3

@mhartington That works great, but can this also be done with nested abstract and child states?