barely making it work

This commit is contained in:
Adam Bradley
2015-04-30 23:56:15 -05:00
parent 6cd4a797a3
commit a425061d90
19 changed files with 113 additions and 205 deletions

View File

@@ -1,34 +1,34 @@
import {NgElement, Component, View as NgView, Parent} from 'angular2/angular2'
import {IonicComponent} from 'ionic/config/component'
// import {NgElement, Component, View as NgView, Parent} from 'angular2/angular2'
// import {IonicComponent} from 'ionic/config/component'
@Component({
selector: 'ion-alert'
})
@NgView({
template: `
<div class="overlay-backdrop"></div>
<div class="overlay-container">
<div class="alert-container">
<div class="alert-header">
Do you like cookies?
</div>
<div class="alert-content">
Seriously, who does not like cookies.
</div>
<div class="alert-actions">
<button class="button">OK</button>
</div>
</div>
</div>`
})
export class Alert {
constructor(
@NgElement() ngElement:NgElement
) {
this.domElement = ngElement.domElement
this.config = Alert.config.invoke(this)
}
}
// @Component({
// selector: 'ion-alert'
// })
// @NgView({
// template: `
// <div class="overlay-backdrop"></div>
// <div class="overlay-container">
// <div class="alert-container">
// <div class="alert-header">
// Do you like cookies?
// </div>
// <div class="alert-content">
// Seriously, who does not like cookies.
// </div>
// <div class="alert-actions">
// <button class="button">OK</button>
// </div>
// </div>
// </div>`
// })
// export class Alert {
// constructor(
// @NgElement() ngElement:NgElement
// ) {
// this.domElement = ngElement.domElement
// this.config = Alert.config.invoke(this)
// }
// }
new IonicComponent(Alert, {})
// new IonicComponent(Alert, {})

View File

@@ -1 +0,0 @@