mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
38 lines
782 B
JavaScript
38 lines
782 B
JavaScript
// import {NgElement, Component, View, Parent} from 'angular2/angular2'
|
|
|
|
|
|
/*
|
|
@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 primary>OK</button>
|
|
</div>
|
|
</div>
|
|
</div>`
|
|
})
|
|
export class Alert {
|
|
constructor(
|
|
@NgElement() ngElement:NgElement
|
|
) {
|
|
this.domElement = ngElement.domElement
|
|
this.config = Alert.config.invoke(this)
|
|
}
|
|
|
|
static open(opts) {
|
|
let alert = new Alert();
|
|
}
|
|
}
|
|
*/
|