fix(demo): respond to custom events

This commit is contained in:
Ken Sodemann
2017-11-16 10:48:28 -06:00
parent c23e2f717c
commit 17862880a9
3 changed files with 11 additions and 3 deletions

View File

@ -19,7 +19,7 @@ export class IonCheckboxValueAccessorDirective implements ControlValueAccessor {
this.renderer.setProperty(this.element.nativeElement, 'checked', value);
}
@HostListener('change', ['$event.target.checked'])
@HostListener('ionChange', ['$event.target.checked'])
_handleIonChange(value: any) {
this.onChange(value);
}