update to use host

This commit is contained in:
Adam Bradley
2015-06-22 13:05:47 -05:00
parent 43042ed999
commit e81a78e9d6
13 changed files with 46 additions and 59 deletions

View File

@ -23,14 +23,12 @@ export class Segment {
return {
selector: 'ion-segment',
appInjector: [ControlDirective],
hostListeners: {
'click': 'buttonClicked($event)'
},
properties: [
'value'
],
hostProperties: {
value: 'value'
host: {
'(click)': 'buttonClicked($event)',
'[value]': 'value'
}
}
}
@ -113,17 +111,14 @@ export class Segment {
}
@Component({
@Directive({
selector: 'ion-segment-button',
hostListeners: {
'click': 'buttonClicked($event)'
},
properties: [
'value'
]
})
@View({
template: '<content></content>'
],
host: {
'(click)': 'buttonClicked($event)'
}
})
export class SegmentButton {
constructor(