mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
barely making it work
This commit is contained in:
@@ -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, {})
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
Reference in New Issue
Block a user