Question is same as this:
TypeScript: Property 'checked' does not exist on type 'EventTarget & Element'. Why it doesn't exist?
But only for different framework.
I need this answear for ANGULAR 2+ . Currently i am using angular 9
public CheckBoxChange(event: Event) {
this.service.change(this.d!.id.toString(), event.target.checked).subscribe(res => {
console.log(res
}, err => {
console.log(err)
})
}
Problem is here event.target.checked
Error message:
Property 'checked' does not exist on type 'EventTarget'.ts(2339)
How to fix this ? Ok i can set type: any but this is not solution.