0
我發現,當使用Android設備上的離子選項卡在視圖之間導航時,在導航到我選擇的選項卡之前,我獲得了先前視圖的簡要閃光。這在IOS設備上不會發生。離子選項卡閃爍在Android上的以前的視圖
這裏是我的標籤代碼:
<ion-tab title="{{ 'personal' | translate }}" icon-off="ion-ios-person" icon-on="ion-ios-person" ui-sref="app.memberDetails">
<ion-nav-view name="profile-details"></ion-nav-view>
</ion-tab>
<ion-tab title="{{ 'contacts' | translate }}" icon-off="ion-ios-telephone" icon-on="ion-ios-telephone" ui-sref="app.contact" >
<ion-nav-view name="profile-contact"></ion-nav-view>
</ion-tab>
<ion-tab title="{{ 'banking' | translate }}" icon-off="ion-card" icon-on="ion-card" ui-sref="app.banking">
<ion-nav-view name="profile-banking"></ion-nav-view>
</ion-tab>
<ion-tab title="{{ 'employer' | translate }}" icon-off="ion-ios-briefcase" icon-on="ion-ios-briefcase" ui-sref="app.employer">
<ion-nav-view name="profile-employer"></ion-nav-view>
</ion-tab>
<ion-tab title="{{ 'comm' | translate }}" icon-off="ion-email" icon-on="ion-email" ui-sref="app.communication" >
<ion-nav-view name="profile-communication"></ion-nav-view>
</ion-tab>
</ion-tabs>
,這是我的國家代碼:
.STATE( 'app.memberDetails',{ URL: 「/個人」, views:{ 'profile-details':{ templateUrl:「app/profile/views/membersPersonalDetails.html」, controller:'membersController' }} } )
.state('app.contact', {
url: "/contact",
views: {
'profile-contact': {
templateUrl: "app/profile/views/contactDetails.html",
controller: 'membersController'
}
}
})
.state('app.banking', {
url: "/banking",
views: {
'profile-banking': {
templateUrl: "app/profile/views/bankingDetails.html",
controller: 'membersController'
}
}
})
.state('app.employer', {
url: "/employer",
views: {
'profile-employer': {
templateUrl: "app/profile/views/employerDetails.html",
controller:'employersController'
}
}
})
.state('app.communication', {
url: "/communication",
views: {
'profile-communication': {
templateUrl: "app/profile/views/communication.html"
//controller:'communicationController'
}
}
})