So use NgModel. <div class="onoffswitch"> <input type="checkbox" [(ngModel)]="onOff" name="onoffswitch" class= ...
確定! 回上一頁