import { Component , NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { IonicApp , IonicModule } from '../../../..' ; @ Component ( { templateUrl : 'main.html' } ) export class AppComponent { doRefresh ( ) { console . log ( 'DOREFRESH' ) ; } } @ NgModule ( { declarations : [ AppComponent ] , imports : [ BrowserModule , IonicModule . forRoot ( AppComponent ) ] , bootstrap : [ IonicApp ] , entryComponents : [ AppComponent ] } ) export class AppModule { }