alert e2e test

This commit is contained in:
Adam Bradley
2015-04-10 22:02:03 -05:00
parent a721072607
commit db08406d60

View File

@ -1,11 +1,9 @@
import {NgElement, Component, Template, Parent} from 'angular2/angular2' import {NgElement, Component, Template, Parent} from 'angular2/angular2'
import {ComponentConfig} from 'ionic2/config/component-config' import {IonicComponent} from 'ionic2/config/component'
export let AlertConfig = new ComponentConfig('alert')
@Component({ @Component({
selector: 'ion-alert', selector: 'ion-alert'
services: [AlertConfig]
}) })
@Template({ @Template({
inline: ` inline: `
@ -26,12 +24,16 @@ export let AlertConfig = new ComponentConfig('alert')
}) })
export class Alert { export class Alert {
constructor( constructor(
configFactory: AlertConfig,
@NgElement() ngElement:NgElement @NgElement() ngElement:NgElement
) { ) {
this.domElement = ngElement.domElement this.domElement = ngElement.domElement
this.domElement.classList.add('pane') this.domElement.classList.add('pane')
this.domElement.classList.add('pane-overlay') this.domElement.classList.add('pane-overlay')
this.config = configFactory.create(this)
this.config = Alert.config.invoke(this)
} }
} }
new IonicComponent(Alert, {
bind: {}
})