I would like to have multiple ion tabs which points on the same view with just a parameter change in the URL.
I don’t manage to do that, the page loads, when I click on both tab, the browser loads /tab/dash/all…
HTML:
<ion-tabs class="tabs-icon-top">
<!-- Adding 5 tabs -->
<ion-tab title="All" icon="icon ion-grid" ng-repeat="tab in tabs" href="#/tab/dash/{{ tab.id }}">
<ion-nav-view name="tab-articles"></ion-nav-view>
</ion-tab>
</ion-tabs>
JS:
$stateProvider
// setup an abstract state for the tabs directive
.state('tab', {
url: "/tab",
abstract: true,
templateUrl: "templates/tabs.html"
})
.state('tab.dash', {
url: '/dash/:filter',
views: {
'tab-articles-all': {
templateUrl: 'templates/tab-dash.html',
controller: 'DashCtrl'
}
})
This is behaving strange when I click the tabs, the navigation starts and reverts. If I force a navigation using $state.go then it keeps switching between the two views