我的想法我是新的角,我试图开发一个角代码,当复选框被选中时,我想设置值为Yes,当它不检查时,我想设置它为No。我没有用ngmodel,我用的是formcontrolname。我将把我的代码留在
下面TScode
changeStatus(event:Event){
const isChecked = (<HTMLInputElement>event.target).checked;
console.log(isChecked)
}