mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(viewCtrl): create showBackButton()
This commit is contained in:
@@ -69,6 +69,13 @@ class FirstPage {
|
||||
meNoWorky(helloIsItMeYoureLookingFor);
|
||||
}
|
||||
|
||||
onPageDidEnter() {
|
||||
setTimeout(() => {
|
||||
// Page2 will be transparent on first nav
|
||||
this.nav.push(PrimaryHeaderPage);
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
setPages() {
|
||||
let items = [
|
||||
PrimaryHeaderPage
|
||||
@@ -211,7 +218,7 @@ class AnotherPage {
|
||||
) {
|
||||
this.nav = nav;
|
||||
this.viewCtrl = viewCtrl;
|
||||
this.bbHideToggleVal = true;
|
||||
this.bbHideToggleVal = false;
|
||||
}
|
||||
|
||||
pushFullPage() {
|
||||
@@ -232,7 +239,7 @@ class AnotherPage {
|
||||
|
||||
toggleBackButton() {
|
||||
this.bbHideToggleVal = !this.bbHideToggleVal
|
||||
this.viewCtrl.hideBackButton(this.bbHideToggleVal);
|
||||
this.viewCtrl.showBackButton(this.bbHideToggleVal);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user