mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
19 lines
322 B
TypeScript
19 lines
322 B
TypeScript
import {App, IonicView, IonicApp, IonicConfig, Platform} from 'ionic/ionic';
|
|
import {Popup} from 'ionic/ionic';
|
|
|
|
|
|
@App({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class MyAppCmp {
|
|
|
|
constructor(popup: Popup, app: IonicApp, ionicConfig: IonicConfig) {
|
|
this.popup = popup;
|
|
|
|
}
|
|
|
|
doAlert() {
|
|
this.popup.alert('What!?');
|
|
}
|
|
}
|