mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
remove alert
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import {App, Alert} from 'ionic/ionic';
|
||||
|
||||
|
||||
@App({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class IonicApp {
|
||||
constructor(alert: Alert) {
|
||||
this.alert = alert;
|
||||
}
|
||||
|
||||
showAlert() {
|
||||
this.alert.open({
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<ion-view>
|
||||
<button primary (click)="showAlert()">Alert</button>
|
||||
<!--
|
||||
<ion-alert>
|
||||
|
||||
</ion-alert>
|
||||
-->
|
||||
</ion-view>
|
||||
Reference in New Issue
Block a user