feat(viewCtrl): create showBackButton()

This commit is contained in:
Adam Bradley
2015-12-01 09:23:26 -06:00
parent 54e40da9ad
commit f2afea8479
2 changed files with 101 additions and 7 deletions

View File

@@ -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);
}
}