模态后的离子后退按钮

时间:2016-05-02 17:49:30

标签: ionic-framework navbar

将产品推到购物车后,我有一个弹出模式询问用户是否要继续购物,或者去结帐:

let uploadOverCellular = NSUserDefaults.standardUserDefaults()
                         .boolForKey("allow_upload_over_cellular")

问题在于即使我var confirmPopup = $ionicPopup.confirm({ title: 'End', template: 'Anything else?', buttons: [{ text: 'Yes', type: 'button-positive', onTap: function (e) { $window.location.href = '#/category'; window.location.reload(); } }, { text: 'No', type: 'button-default', onTap: function (e) { $window.location.href = '#/cart'; window.location.reload(); } }] }); 定义如此:

index.html

当我从模态重定向时,没有后退按钮。我试图在<div> <ion-nav-bar class="bar-dark"> <ion-nav-back-button class="button-icon icon ion-ios-arrow-back">Back</ion-nav-back-button> </ion-nav-bar> <ion-nav-view></ion-nav-view> </div> 中对其进行硬编码,但没有运气。有办法吗?

0 个答案:

没有答案