mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
27 lines
475 B
TypeScript
27 lines
475 B
TypeScript
import {App} from 'ionic/ionic';
|
|
|
|
|
|
@App({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class IonicApp {
|
|
constructor() {
|
|
this.groups = [];
|
|
|
|
var letters = "abcdefghijklmnopqrstuvwxyz".split('');
|
|
|
|
for(let i = 0; i < letters.length; i++) {
|
|
let group = [];
|
|
for(let j = 0; j < 10; j++) {
|
|
group.push({
|
|
title: letters[i] + j
|
|
});
|
|
}
|
|
this.groups.push({
|
|
title: letters[i].toUpperCase(),
|
|
items: group
|
|
});
|
|
}
|
|
}
|
|
}
|