Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Navigate between nested tab states

$
0
0

I have an app that uses tabs for navigation, but I want to navigate from tabs.A.details to tabs.B.details. how would I go about doing this while maintaining visual state as well (i.e. highlight the appropriate tab)?

$stateProvider
.state('tabs', { url: '/tabs', abstract: true, templateUrl: '/views/tabs.html' })
.state('tabs.A', { url: '/a', abstract: true, views: { a: { template: '<ion-nav-view />' } } })
.state('tabs.A.index', { url: '', templateUrl: '/views/a/index.html' })
.state('tabs.A.details', { url: '/:id', templateUrl: '/views/a/details.html' })
.state('tabs.B'', { url: '/b', abstract: true, views: { b: { template: '<ion-nav-view />' } } })
.state('tabs.B.index', { url: '', templateUrl: '/views/b/index.html' })
.state('tabs.B.details', { url: '/:id', templateUrl: '/views/b/details.html' })

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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