mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
28 lines
535 B
JavaScript
28 lines
535 B
JavaScript
import {bootstrap} from 'angular2/angular2'
|
|
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
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({
|
|
});
|
|
}
|
|
}
|
|
|
|
export function main() {
|
|
bootstrap(IonicApp);
|
|
}
|