import {NavController, NavParams} from 'ionic/ionic'; import {Page, ViewController} from 'ionic/ionic'; import {forwardRef} from 'angular2/angular2'; import * as helpers from '../helpers'; var TABS_DEMO_TMPL = '' + '' + 'Tabs' + '' + '' + ''; @Page({ template: TABS_DEMO_TMPL, directives: [forwardRef(() => helpers.AndroidAttribute)], }) class TabOneCtrl { constructor(nav: NavController, view: ViewController) { this.nav = nav; this.view = view; } } @Page({ template: TABS_DEMO_TMPL, directives: [forwardRef(() => helpers.AndroidAttribute)], }) class TabTwoCtrl { constructor(nav: NavController, view: ViewController) { this.nav = nav; this.view = view; } } @Page({ template: TABS_DEMO_TMPL, directives: [forwardRef(() => helpers.AndroidAttribute)], }) class TabThreeCtrl { constructor(nav: NavController, view: ViewController) { this.nav = nav; this.view = view; } } @Page({ template: '' + '' + '' + '' + '', }) export class TabsPage { constructor(nav: NavController, params: NavParams) { this.nav = nav; this.tabOne = TabOneCtrl; this.tabTwo = TabTwoCtrl; this.tabThree = TabThreeCtrl; } }