import { Component , NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { IonicApp , IonicModule } from '../../../..' ; @ Component ( { templateUrl : 'main.html' } ) export class E2EPage { groups : any [ ] = [ ] ; constructor ( ) { var letters = 'abcdefghijklmnopqrstuvwxyz' . split ( '' ) ; for ( var i = 0 ; i < letters . length ; i ++ ) { var group = [ ] ; for ( var j = 0 ; j < 10 ; j ++ ) { group . push ( { title : letters [ i ] + j } ) ; } this . groups . push ( { title : letters [ i ] . toUpperCase ( ) , items : group } ) ; } } } @ Component ( { template : '<ion-nav [root]="rootPage"></ion-nav>' } ) export class AppComponent { rootPage = E2EPage ; } @ NgModule ( { declarations : [ AppComponent , E2EPage ] , imports : [ BrowserModule , IonicModule . forRoot ( AppComponent ) ] , bootstrap : [ IonicApp ] , entryComponents : [ AppComponent , E2EPage ] } ) export class AppModule { }