import { Component } from '@angular/core' ; import { Config , IonicPage , Tab } from '../../../../../..' ; import { TabOne } from '../tab-one/tab-one' ; @ IonicPage ( ) @ Component ( { templateUrl : 'tabs-page.html' } ) export class TabsPage { root1 = TabOne ; root2 = 'TabTwo' ; root3 = 'TabThree' ; myColor : string ; constructor ( config ) { this . myColor = ( config . get ( 'mode' ) !== 'ios' ) ? 'primary' : null ; } onChange ( ev ) { console . log ( 'Changed tab' , ev ) ; } onSelect ( ev ) { console . log ( 'Selected tab' , ev ) ; } }