I have got an aside on the left.
`,
directives: [Content]
})
class Tab2Page1 {
// TODO change to 'Nav' injection when we're allowed to inject a tab as a nav.
constructor(nav: NavController) {
this.nav = nav
}
next() {
this.nav.push(Tab2Page2)
}
}
@Component({ selector: 't2p2' })
@View({
template: `
Nested Tab 1, static content
Nested Tab 2, static content
`,
directives: [Tabs, Tab, Content]
})
class Tab2Page2 {
// TODO change to 'Nav' injection when we're allowed to inject a tab as a nav.
constructor(nav: NavController) {
this.nav = nav
}
pop() { this.nav.pop() }
}