feat(navController): navController insert method

This commit is contained in:
Tim Lancina
2015-09-24 15:17:48 -06:00
parent fe7b070a6d
commit 54af55d9da
2 changed files with 31 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ class SecondPage {
<ion-content padding>
<p>
<button id="from3To2" (click)="pop()">Pop (Go back to 2nd)</button>
<button id="insert" (click)="insert()">Insert first page into history before this</button>
</p>
<div class="yellow"><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f></div>
</ion-content>
@@ -116,6 +117,10 @@ class ThirdPage {
this.nav.pop()
}
insert() {
this.nav.insert(FirstPage, 2);
}
}