NavController popTo takes componentType

This commit is contained in:
Tim Lancina
2015-10-08 22:56:07 -05:00
parent b2336550dd
commit 63aebf8ba8
2 changed files with 27 additions and 8 deletions

View File

@@ -105,6 +105,7 @@ class SecondPage {
<button id="from3To2" (click)="pop()">Pop (Go back to 2nd)</button>
<button id="insert" (click)="insert()">Insert first page into history before this</button>
<button id="remove" (click)="removeSecond()">Remove second page in history</button>
<button id="popto" (click)="popTo()">popTo FirstPage</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>
@@ -129,6 +130,10 @@ class ThirdPage {
this.nav.remove(1);
}
popTo() {
this.nav.popTo(FirstPage);
}
}