Files
Brandy Carney 45e37ceb29 test(e2e): update all e2e tests to use a local path to ionic
this lets type errors to show up during development

closes #6366
2016-04-29 15:34:56 -04:00

42 lines
615 B
TypeScript

import {App, Page} from '../../../../../ionic';
@Page({
templateUrl: 'main.html'
})
class E2EPage {
items = [];
constructor() {
for (var i = 0; i < 5000; i++) {
this.items.push({
isHeader: ((i % 10) === 0),
fontSize: Math.floor((Math.random() * 32) + 16) + 'px',
item: i
});
}
}
headerFn(record, recordIndex) {
if (recordIndex > 0 && recordIndex % 100 === 0) {
return recordIndex;
}
return null;
}
}
@App({
template: '<ion-nav [root]="root"></ion-nav>',
})
class E2EApp {
root;
constructor() {
this.root = E2EPage;
}
}