Hello i am new to both ionic and angular js. I just started the framework yesterday but i am really stuck in the process below. I am trying to create a nested tab views inside another view. However it's not working. so this is the listing part my menu view for tabs:
<ion-item class="item-icon-left" menu-close href="#/app/browse">
<i class="icon ion-ios-stopwatch"></i>
browse
</ion-item>
<ion-item class="item-icon-left" menu-close href="#/app/tab">
<i class="icon ion-ios-calendar"></i>
tabs
</ion-item>
this is my tabs view:
<ion-view view-title="Tabs">
<ion-content>
<ion-tabs class="tabs-icon-top tabs-color-active-positive">
<ion-tab title="Status" icon-off="ion-ios-pulse" icon-on="ion-ios-pulse-strong" href="#/app/tab/dash">
<ion-nav-view name="tab-dash"></ion-nav-view>
</ion-tab>
<ion-tab title="Chats" icon-off="ion-ios-chatboxes-outline" icon-on="ion-ios-chatboxes" href="#/app/tab/chats">
<ion-nav-view name="tab-chats"></ion-nav-view>
</ion-tab>
<ion-tab title="Account" icon-off="ion-ios-gear-outline" icon-on="ion-ios-gear" href="#/app/tabs/account">
<ion-nav-view name="tab-account"></ion-nav-view>
</ion-tab>
</ion-tabs>
</ion-content>
</ion-view>
the angular js script for routing:
.state('app', {
url: "/app",
abstract: true,
templateUrl: "templates/menu.html",
controller: 'AppCtrl'
})
.state('app.browse', {
url: "/browse",
views: {
'menuContent': {
templateUrl: "templates/browse.html"
}
}
})
.state('app.tab',{
url: "/tab",
abstract: true,
views: {
'menuContent': {
templateUrl: "templates/tabs.html"
}
}
})
.state('app.tab.dash',{
url: "/dash",
views: {
'tab-dash': {
templateUrl: "templates/tab-dash.html"
}
}
})
from the menu list the browse state works fine however the tabs state does not load with above script but loads if i remove its abstract property. Not to mention the nested dash state of the tabs never loads
1.0.0
. – Guillem Vicens