diff --git a/ionic/components/nav/test/basic/index.ts b/ionic/components/nav/test/basic/index.ts index 7b2941b8b8..70dce48428 100644 --- a/ionic/components/nav/test/basic/index.ts +++ b/ionic/components/nav/test/basic/index.ts @@ -37,6 +37,7 @@ class MyCmpTest{} + @@ -70,6 +71,10 @@ class FirstPage { this.nav.setViews(items); } + setRoot(PrimaryHeaderPage) { + + } + pushPrimaryHeaderPage() { this.nav.push(PrimaryHeaderPage); } @@ -140,6 +145,7 @@ class FullPage {

+

@@ -169,6 +175,10 @@ class PrimaryHeaderPage { this.nav.remove(1); } + setRoot() { + this.nav.setRoot(AnotherPage); + } + } @@ -183,6 +193,7 @@ class PrimaryHeaderPage {

+

` @@ -209,6 +220,10 @@ class AnotherPage { this.nav.push(FirstPage); } + setRoot() { + this.nav.setRoot(FirstPage); + } + toggleBackButton() { this.bbHideToggleVal = !this.bbHideToggleVal this.viewCtrl.hideBackButton(this.bbHideToggleVal);