Files
2015-12-08 11:20:56 -06:00

42 lines
686 B
TypeScript

import {App, Page, IonicApp, Config, Platform} from 'ionic/ionic';
import {NavController, NavParams} from 'ionic/ionic';
@App({
templateUrl: 'app.html'
})
class ApiDemoApp {
constructor() {
this.rootPage = InitialPage;
}
}
@Page({
templateUrl: 'main.html'
})
export class InitialPage {
constructor(nav: NavController) {
this.nav = nav;
this.myParam = '';
}
pushParams() {
this.nav.push(Page2, { 'myParam': this.myParam });
}
}
@Page({
templateUrl: "page-2.html"
})
export class Page2 {
constructor(
nav: NavController,
params: NavParams
) {
this.nav = nav;
this.myParam = params.get('myParam');
}
}