mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
23 lines
388 B
JavaScript
23 lines
388 B
JavaScript
import {Component, View, bootstrap} from 'angular2/angular2';
|
|
import {Alert} from 'ionic/components/alert/alert';
|
|
|
|
|
|
@Component({ selector: '[ion-app]' })
|
|
@View({
|
|
templateUrl: 'main.html',
|
|
directives: [Alert]
|
|
})
|
|
class IonicApp {
|
|
constructor() {
|
|
console.log('IonicApp Start')
|
|
}
|
|
showAlert() {
|
|
console.log('Show alert');
|
|
|
|
Alert.open({
|
|
});
|
|
}
|
|
}
|
|
|
|
bootstrap(IonicApp)
|