mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(demos): update nav demo to use nav-params
This commit is contained in:
@ -11,7 +11,7 @@ import {NavParams, NavController} from 'ionic/ionic';
|
||||
'<ion-content padding>' +
|
||||
'<h1>{{title}}</h1>' +
|
||||
'<p><button id="from1To2" secondary (click)="push()">(Push) Go to Second Page</button></p>' +
|
||||
'<p><button secondary [push-data]="pushData" [nav-push]="pushPage">(Nav-Push) Go to Second Page</button></p>' +
|
||||
'<p><button secondary [nav-push]="pushPage" [nav-params]="pushData">(Nav-Push) Go to Second Page</button></p>' +
|
||||
'<p><button danger (click)="setViews()">(setViews) Go to Third Page</button></p>' +
|
||||
'</ion-content>'
|
||||
})
|
||||
|
Reference in New Issue
Block a user