I have a button that triggers a function called check (resp is a reference in my HTML template)
<button
(click)="check(resp)">
clickMe
</button>
In my typescript code, I have:
check() {
console.log("check is clicked")
}
I can see the console output, but I am confused why the check function is called successfully. I am not expecting any arguments in the typescript code, but my template code passed an argument. I am expecting a signature mismatch error, but it is able to call successfully.