mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
19 lines
501 B
JavaScript
19 lines
501 B
JavaScript
import {NgElement, Decorator} from 'angular2/angular2'
|
|
import {IonicComponent} from 'ionic/config/component'
|
|
|
|
@Decorator({
|
|
selector: 'button, ion-button, [ion-button],.button',
|
|
})
|
|
export class Button {
|
|
constructor(
|
|
@NgElement() ngElement:NgElement
|
|
) {
|
|
this.domElement = ngElement.domElement
|
|
this.config = Button.config.invoke(this)
|
|
}
|
|
}
|
|
new IonicComponent(Button, {
|
|
enhanceRawElement: true,
|
|
propClasses: ['primary', 'secondary', 'danger', 'light', 'stable', 'dark', 'block']
|
|
})
|