mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
17 lines
360 B
JavaScript
17 lines
360 B
JavaScript
import {NgElement, Decorator} from 'angular2/angular2'
|
|
import {IonicComponent} from 'ionic/config/component'
|
|
|
|
@Decorator({
|
|
selector: 'ion-segment'
|
|
})
|
|
export class Segment {
|
|
constructor(
|
|
@NgElement() ngElement:NgElement
|
|
) {
|
|
this.domElement = ngElement.domElement
|
|
this.config = Button.config.invoke(this)
|
|
}
|
|
}
|
|
new IonicComponent(Segment, {
|
|
})
|