Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49082

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

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49082

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>