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

Mutiple views in one tab

$
0
0

I found the answer to my own question!
It's a routing mistake...
To do this, the tabs.details state must have the same view name as the parent tab.

.state('tabs.news', {
    url: '/news',
    views: {
        'news-tab': {
            templateUrl: 'templates/news.html',
            controller: 'NewsCtrl'
        }
    }
})
.state('tabs.details', {
    url: '/details',
    views: {
        'news-tab': { // SAME VIEW NAME!!!
            templateUrl: 'templates/details.html',
            controller: 'DetailsCtrl'
        }
    }
})

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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