现在我正在努力做一件事。我正在尝试在特定选项卡视图中插入侧面菜单导航。问题是我无法按照假装启动视图。
在标签视图中,我正在调用这样的视图:
<ion-tab title="Market" class="ion-custom-tab" icon-off="ion-bag" icon-on="ion-bag" badge="badgeNumber" ng-click="ChangeView('tab.market.deals');">
<ion-nav-view></ion-nav-view>
</ion-tab>
在app.init中我写了这个:
$stateProvider
// Message State
// setup an abstract state for the tabs directive
.state('tab', {
url: '/tab',
abstract: true,
templateUrl: 'angular/app/thirdparty/tabs.html'
})
.state("tab.profile", {
url: "/profile",
views: {
'tab-others': {
templateUrl: "angular/app/definitions/profile/profile.template.html"
}
}
})
.state("tab.market", {
abstract: true,
url: "/market",
templateUrl: 'angular/app/market/market.html',
controller: 'angular/app/market/market.controller.js'
})
.state("tab.market.deals", {
url: "/market/deals",
views: {
'tab-market': {
templateUrl: "angular/app/market/deals/deals.html"
}
}
});
我做错了什么?