import { Component } from '@angular/core' ; import { Platform } from 'ionic-angular' ; import { StatusBar , Splashscreen } from 'ionic-native' ; import { PostsPage } from '../pages/posts/posts' ; @ Component ( { template : `<ion-nav [root]="rootPage"></ion-nav>` } ) export class RedditReaderApp { rootPage = PostsPage ; constructor ( platform ) { platform . ready ( ) . then ( ( ) => { StatusBar . styleDefault ( ) ; Splashscreen . hide ( ) ; } ) ; } }