mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
58 lines
1015 B
TypeScript
58 lines
1015 B
TypeScript
import {Component} from '@angular/core';
|
|
import {ionicBootstrap} from '../../../../../src';
|
|
|
|
|
|
@Component({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class E2EPage {
|
|
wwwInvented = '1989';
|
|
time = '13:47';
|
|
netscapeReleased = '1994-12-15T13:47:20.789';
|
|
operaReleased = '1995-04-15';
|
|
firefoxReleased = '2002-09-23T15:03:46.789';
|
|
webkitOpenSourced = '2005-06-17T11:06Z';
|
|
chromeReleased = '2008-09-02';
|
|
leapYearsSummerMonths = '';
|
|
convertedDate = '';
|
|
|
|
leapYearsArray = [2020, 2016, 2008, 2004, 2000, 1996];
|
|
|
|
customShortDay = [
|
|
's\u00f8n',
|
|
'man',
|
|
'tir',
|
|
'ons',
|
|
'tor',
|
|
'fre',
|
|
'l\u00f8r'
|
|
];
|
|
|
|
onChange(ev: any) {
|
|
console.log("Changed", ev);
|
|
}
|
|
|
|
onCancel(ev: any) {
|
|
console.log("Canceled", ev);
|
|
}
|
|
|
|
clearLeapYear() {
|
|
this.leapYearsSummerMonths = null;
|
|
}
|
|
|
|
convertDate() {
|
|
this.convertedDate = new Date(this.myDate).toISOString();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
@Component({
|
|
template: '<ion-nav [root]="root"></ion-nav>'
|
|
})
|
|
class E2EApp {
|
|
root = E2EPage;
|
|
}
|
|
|
|
ionicBootstrap(E2EApp);
|