mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(gestures): init gesture test
This commit is contained in:
25
ionic/components/app/test/gestures/index.ts
Normal file
25
ionic/components/app/test/gestures/index.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import {App, Page} from 'ionic-angular';
|
||||
|
||||
|
||||
@Page({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EPage {
|
||||
|
||||
onTap(ev) {
|
||||
console.log('onTap', ev);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@App({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
class E2EApp {
|
||||
root;
|
||||
|
||||
constructor() {
|
||||
this.root = E2EPage;
|
||||
}
|
||||
}
|
||||
9
ionic/components/app/test/gestures/main.html
Normal file
9
ionic/components/app/test/gestures/main.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<ion-navbar *navbar>
|
||||
<ion-title>Gestures</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content padding>
|
||||
|
||||
<button (tap)="onTap($event)">Tap</button>
|
||||
|
||||
</ion-content>
|
||||
Reference in New Issue
Block a user