在复选框输入中应用icheck指令之后。当我单击复选框时,将应用icheck类,但复选框的值未更改..我需要做的.. ??
<!-- Directive File -->
declare var $: any;
@Directive({
selector: '[icheck]'
})
export class IcheckDirective {
$: any = $;
constructor(el: ElementRef) {
this.$(el.nativeElement).iCheck({
checkboxClass: 'icheckbox_square-aero',
radioClass: 'iradio_square-aero'
})
}
}
<!-- Component File -->
<input type="checkbox" icheck [(ngModel)]="checked">