This commit is contained in:
Adam Bradley
2015-12-22 10:43:24 -06:00
parent e4628d8997
commit f409d6add7
4 changed files with 73 additions and 0 deletions

View File

@ -1,6 +1,7 @@
export * from './components/app/app'
export * from './components/app/id'
export * from './components/action-sheet/action-sheet'
export * from './components/alert/alert'
export * from './components/blur/blur'
export * from './components/button/button'
export * from './components/checkbox/checkbox'

View File

@ -0,0 +1,25 @@
import {Component, ElementRef, Injectable, Renderer} from 'angular2/core';
import {NgClass, NgIf, NgFor, FORM_DIRECTIVES} from 'angular2/common';
import {OverlayController} from '../overlay/overlay-controller';
import {Config} from '../../config/config';
import {Animation} from '../../animations/animation';
import {NavParams} from '../nav/nav-controller';
import {Button} from '../button/button';
import {extend} from '../../util/util';
@Injectable()
export class Alert {
constructor(private _ctrl: OverlayController, private _config: Config) {
}
static create() {
let alert = new Alert();
return alert;
}
}

View File

@ -0,0 +1,29 @@
import {App, Alert} from 'ionic/ionic';
@App({
templateUrl: 'main.html'
})
class E2EApp {
constructor() {
this.alertOpen = false;
this.confirmOpen = false;
this.confirmResult = '';
this.promptOpen = false;
this.promptResult = '';
}
doAlert() {
debugger;
let alert = Alert.create();
}
doPrompt() {
}
doConfirm() {
}
}

View File

@ -0,0 +1,18 @@
<ion-content padding>
<button class="e2eOpenAlert" (click)="doAlert()">Alert</button>
<button class="e2eOpenPrompt" (click)="doPrompt()">Prompt</button>
<button class="e2eOpenConfirm" (click)="doConfirm()">Confirm</button>
<pre>
Alert Opened: {{alertOpen}}
Prompt Opened: {{promptOpen}}
Prompt Result: {{promptResult}}
Confirm Opened: {{confirmOpen}}
Confirm Result: {{confirmResult}}
</pre>
</ion-content>
<ion-overlay></ion-overlay>