This commit is contained in:
Max Lynch
2015-07-21 10:19:36 -05:00
parent 9a8188cf59
commit 72a107cfeb
6 changed files with 259 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
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!?');
}
}

View File

@@ -0,0 +1,6 @@
<ion-content class="padding">
<button primary (click)="doAlert()">Alert</button>
<button primary (click)="doPrompt()">Prompt</button>
<button primary (click)="doConfirm()">Confirm</button>
<button primary (click)="doCustom()">Custom</button>
</ion-content>