mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
16 lines
355 B
JavaScript
16 lines
355 B
JavaScript
import {NgElement, Decorator} from 'angular2/angular2'
|
|
import {IonicComponent} from 'ionic2/config/component'
|
|
|
|
@Decorator({
|
|
selector: '.button',
|
|
})
|
|
export class Button {
|
|
constructor(
|
|
@NgElement() ngElement:NgElement
|
|
) {
|
|
this.domElement = ngElement.domElement
|
|
this.config = Button.config.invoke(this)
|
|
}
|
|
}
|
|
new IonicComponent(Button, {})
|