import {App, Page, NavController} from 'ionic/ionic';
@Page({
template: `
Root
`,
})
class FirstPage {
constructor(nav: NavController) {
this.nav = nav;
}
pushPage(){
this.nav.push(SecondPage)
}
}
@Page({
template: `
Root
Second page
`
})
class SecondPage {
constructor(nav: NavController) {
this.nav = nav;
}
insertPage(){
this.nav.insert(1, InsertPage)
}
}
@Page({
template: `
Inserted Paged
Inserted Page
`
})
class InsertPage {
constructor() {}
}
@App({
template: ``
})
class E2EApp {
constructor() {
this.root = FirstPage;
}
}