feat(nav): add NavRegistry

This commit is contained in:
Tim Lancina
2015-09-24 17:34:47 -06:00
parent 7fe4b69b98
commit db6c7b7283
5 changed files with 44 additions and 9 deletions

View File

@@ -17,8 +17,10 @@ import {NavParams, NavController} from 'ionic/ionic';
'<ion-content padding>' +
'<p>{{title}}</p>' +
'<p><button id="from1To2" primary (click)="push()">Push (Go to 2nd)</button></p>' +
'<p><button [nav-push]="[pushPage, {id: 42}]">Push w/ nav-push array (Go to 2nd)</button></p>' +
'<p><button [nav-push]="pushPage" [nav-params]="{id:40}">Push w/ nav-push and nav-params (Go to 2nd)</button></p>' +
'<p><button [nav-push]="[pushPage, {id: 42}]">Push w/ [nav-push] array (Go to 2nd)</button></p>' +
'<p><button [nav-push]="pushPage" [nav-params]="{id:40}">Push w/ [nav-push] and [nav-params] (Go to 2nd)</button></p>' +
'<p><button [nav-push]="[\'FirstPage\', {id: 22}]">Push w/ [nav-push] array and string view name (Go to 2nd)</button></p>' +
'<p><button nav-push="FirstPage" [nav-params]="{id: 23}">Push w/ nav-push and [nav-params] (Go to 2nd)</button></p>' +
'<p><button (click)="setViews()">setViews() (Go to 3rd, no history)</button></p>' +
'<icon class="ion-ios-arrow-back"></icon>' +
'<f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f>' +
@@ -127,7 +129,8 @@ class ThirdPage {
@App({
template: '<ion-nav [root]="root"></ion-nav>'
template: '<ion-nav [root]="root"></ion-nav>',
views: [FirstPage, SecondPage, ThirdPage]
})
class E2EApp {
constructor() {