mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
chore(build): rename ionic directory to src and update all references in the build process.
This commit is contained in:
42
src/components/virtual-scroll/test/basic/index.ts
Normal file
42
src/components/virtual-scroll/test/basic/index.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import {ViewChild, ElementRef} from '@angular/core';
|
||||
import {App, Page} from '../../../../../ionic';
|
||||
|
||||
|
||||
@Page({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EPage {
|
||||
items = [];
|
||||
|
||||
@ViewChild('content') content: ElementRef;
|
||||
|
||||
constructor() {
|
||||
for (var i = 0; i < 200; i++) {
|
||||
this.items.push(i);
|
||||
}
|
||||
}
|
||||
|
||||
headerFn(record: any, index: number, records: any[]) {
|
||||
if (index % 4 === 0) {
|
||||
return index + ' is divisible by 4';
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
reload() {
|
||||
window.location.reload(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@App({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
class E2EApp {
|
||||
root;
|
||||
constructor() {
|
||||
this.root = E2EPage;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user