|
哥,我现在这个底部的菜单不出来了。
- .config(function($stateProvider, $urlRouterProvider) {
- $stateProvider
- .state('tab', {
- url: '/tab',
- abstract: true,
- templateUrl: 'templates/tabs.html'
- })
- .state('index', {
- url: '/index',
- templateUrl: 'templates/index/index.html',
- controller:'indexController'
- })
- .state('topic-detail', {
- url: '/index/:id',
- templateUrl: 'templates/index/topic-detail.html',
- controller:'topicDetailController'
- })
- .state('chats', {
- url: '/chats',
- templateUrl: 'templates/tab-chats.html',
- controller: 'ChatsCtrl'
- })
- .state('chat-detail', {
- url: '/chats/:chatId',
- templateUrl: 'templates/chat-detail.html',
- controller: 'ChatDetailCtrl'
- });
- $urlRouterProvider.otherwise('/index');
- });
复制代码
- <ion-tabs class="tabs-icon-top tabs-color-active-positive" ng-class="{'tabs-item-hide': $root.hideTabs}">
- <!-- Dashboard Tab -->
- <ion-tab title="书圈" icon-off="ion-ios-color-wand-outline" icon-on="ion-ios-color-wand" href="#/index">
- <ion-nav-view name="index"></ion-nav-view>
- </ion-tab>
- <!-- Chats Tab -->
- <ion-tab title="书友会" icon-off="ion-ios-chatboxes-outline" icon-on="ion-ios-chatboxes" href="#/chats">
- <ion-nav-view name="tab-chats"></ion-nav-view>
- </ion-tab>
- <!-- Account Tab -->
- <ion-tab title="我" icon-off="ion-ios-gear-outline" icon-on="ion-ios-gear" href="#/account">
- <ion-nav-view name="tab-account"></ion-nav-view>
- </ion-tab>
- </ion-tabs>
复制代码 |
|