import { Component, NgModule } from '@angular/core'; import { IonicApp, IonicModule, NavController, Platform } from '../../../..'; @Component({ templateUrl: 'main.html' }) export class E2EPage { items: any[] = []; webview: string = ''; constructor(plt: Platform, public navCtrl: NavController) { for (var i = 0; i < 200; i++) { this.items.push({ value: i, someMethod: function() { return '!!'; } }); } if (plt.is('ios')) { if (plt.testUserAgent('Safari')) { this.webview = ': iOS Safari'; } else if (!!window['webkit']) { this.webview = ': iOS WKWebView'; } else { this.webview = ': iOS UIWebView'; } } } headerFn(record: any, index: number, records: any[]) { if (index % 4 === 0) { return index + ' is divisible by 4'; } return null; } pushPage() { this.navCtrl.push(E2EPage); } reload() { window.location.reload(true); } } @Component({ template: '' }) export class E2EApp { root = E2EPage; } @NgModule({ declarations: [ E2EApp, E2EPage ], imports: [ IonicModule.forRoot(E2EApp) ], bootstrap: [IonicApp], entryComponents: [ E2EApp, E2EPage ] }) export class AppModule {}