mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
18 lines
208 B
TypeScript
18 lines
208 B
TypeScript
import {App, Alert} from 'ionic/ionic';
|
|
|
|
|
|
@App({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class IonicApp {
|
|
constructor(alert: Alert) {
|
|
this.alert = alert;
|
|
}
|
|
|
|
showAlert() {
|
|
this.alert.open({
|
|
|
|
});
|
|
}
|
|
}
|