import {NavController, NavParams} from 'ionic/ionic';
import {Page, ViewController, Platform} from 'ionic/ionic';
import {forwardRef} from 'angular2/angular2';
import * as helpers from '../../helpers';
@Page({
template: '' +
'' +
'Tabs' +
'' +
'' +
'',
directives: [forwardRef(() => helpers.AndroidAttribute)],
})
class TabIconTextPage {
constructor(platform: Platform) {
this.platform = platform;
this.isAndroid = platform.is('android');
}
onPageWillEnter() {
console.log('enter');
document.getElementById('md-tabs-icon-text').style.display = "block";
document.getElementById('md-only').style.display = "none";
}
}
@Page({
template:
'' +
'' +
'' +
'' +
'' +
'',
})
export class IconTextPage {
constructor() {
this.tabOne = TabIconTextPage;
this.tabTwo = TabIconTextPage;
this.tabThree = TabIconTextPage;
this.tabFour = TabIconTextPage;
}
onPageWillLeave() {
document.getElementById('md-tabs-icon-text').style.display = "none";
document.getElementById('md-only').style.display = "block";
}
}